Commit 3a6e80c7 by 蔡润涛

Add new file

parent 3fb4e4c6
version: '2.4'
services:
nginx-root:
restart: always
image: nginx:1.26.0-alpine
container_name: nginx-root
ports:
- 80:80
- 443:443
volumes:
- /home/deploy/nginx/conf.d:/etc/nginx/conf.d
- /etc/nginx/vhost.d
- /usr/share/nginx/html
- /var/run/docker.sock:/tmp/docker.sock:ro
- /home/deploy/nginx/certs:/etc/nginx/certs:ro
nginx-gen:
restart: always
image: ghcr.io/ivancai/nginx-gen:2.0
container_name: nginx-gen
volumes_from:
- nginx-root
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
command: -notify-sighup nginx-root -watch -wait 5s:30s /etc/docker-gen/templates/nginx.tmpl /etc/nginx/conf.d/default.conf
nginx-certbot:
restart: always
image: ghcr.io/ivancai/nginx-certbot:2.0
container_name: nginx-certbot
environment:
- NGINX_DOCKER_GEN_CONTAINER=nginx-gen
- NGINX_PROXY_CONTAINER=nginx-root
volumes_from:
- nginx-root
volumes:
- /home/deploy/nginx/certs:/etc/nginx/certs:rw
- /var/run/docker.sock:/var/run/docker.sock:ro
networks:
default:
external:
name: nginx-proxy
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment