Commit 6ccd1d8c by 蔡润涛

Add new file

parents
version: '2'
services:
nginx-root:
restart: always
image: registry.cn-shenzhen.aliyuncs.com/dankal/nginx
container_name: nginx-root
ports:
- 80:80
- 443:443
volumes:
- /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: registry.cn-shenzhen.aliyuncs.com/dankal/nginx-gen
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: registry.cn-shenzhen.aliyuncs.com/dankal/nginx-certbot
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
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