docker-compose.nginx.yml 467 B

12345678910111213141516171819
  1. services:
  2. nginx:
  3. image: nginx:1.26-alpine
  4. container_name: zq-nginx
  5. restart: unless-stopped
  6. ports:
  7. - "80:80"
  8. - "443:443"
  9. volumes:
  10. - /home/hxxy/zq/apps/nginx/conf.d:/etc/nginx/conf.d:ro
  11. - /home/hxxy/zq/apps/nginx/certs:/etc/nginx/certs:ro
  12. - /home/hxxy/zq/apps/external/webapp:/srv/zq-webapp:ro
  13. - /home/hxxy/zq/logs/nginx:/var/log/nginx
  14. networks:
  15. - zq-public
  16. networks:
  17. zq-public:
  18. external: true