@@ -4,47 +4,59 @@ services:
44 image : nginx
55 labels :
66 com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy : " true"
7- container_name : ${NGINX_WEB}
7+ container_name : ${NGINX_WEB:-nginx-web }
88 restart : always
99 ports :
1010 - " ${IP}:80:80"
1111 - " ${IP}:443:443"
1212 volumes :
13- - ${NGINX_FILES_PATH}/conf.d:/etc/nginx/conf.d
14- - ${NGINX_FILES_PATH}/vhost.d:/etc/nginx/vhost.d
15- - ${NGINX_FILES_PATH}/html:/usr/share/nginx/html
16- - ${NGINX_FILES_PATH}/certs:/etc/nginx/certs:ro
17- - ${NGINX_FILES_PATH}/htpasswd:/etc/nginx/htpasswd:ro
13+ - ${NGINX_FILES_PATH:-data}/conf.d:/etc/nginx/conf.d
14+ - ${NGINX_FILES_PATH:-data}/vhost.d:/etc/nginx/vhost.d
15+ - ${NGINX_FILES_PATH:-data}/html:/usr/share/nginx/html
16+ - ${NGINX_FILES_PATH:-data}/certs:/etc/nginx/certs:ro
17+ - ${NGINX_FILES_PATH:-data}/htpasswd:/etc/nginx/htpasswd:ro
18+ logging :
19+ options :
20+ max-size : ${NGINX_WEB_LOG_MAX_SIZE:-4m}
21+ max-file : ${NGINX_WEB_LOG_MAX_FILE:-10}
1822
1923 nginx-gen :
2024 image : jwilder/docker-gen
21- command : -notify-sighup ${NGINX_WEB} -watch -wait 5s:30s /etc/docker-gen/templates/nginx.tmpl /etc/nginx/conf.d/default.conf
22- container_name : ${DOCKER_GEN}
25+ command : -notify-sighup ${NGINX_WEB:-nginx-web } -watch -wait 5s:30s /etc/docker-gen/templates/nginx.tmpl /etc/nginx/conf.d/default.conf
26+ container_name : ${DOCKER_GEN:-nginx-gen }
2327 restart : always
2428 volumes :
25- - ${NGINX_FILES_PATH}/conf.d:/etc/nginx/conf.d
26- - ${NGINX_FILES_PATH}/vhost.d:/etc/nginx/vhost.d
27- - ${NGINX_FILES_PATH}/html:/usr/share/nginx/html
28- - ${NGINX_FILES_PATH}/certs:/etc/nginx/certs:ro
29- - ${NGINX_FILES_PATH}/htpasswd:/etc/nginx/htpasswd:ro
29+ - ${NGINX_FILES_PATH:-data }/conf.d:/etc/nginx/conf.d
30+ - ${NGINX_FILES_PATH:-data }/vhost.d:/etc/nginx/vhost.d
31+ - ${NGINX_FILES_PATH:-data }/html:/usr/share/nginx/html
32+ - ${NGINX_FILES_PATH:-data }/certs:/etc/nginx/certs:ro
33+ - ${NGINX_FILES_PATH:-data }/htpasswd:/etc/nginx/htpasswd:ro
3034 - /var/run/docker.sock:/tmp/docker.sock:ro
3135 - ./nginx.tmpl:/etc/docker-gen/templates/nginx.tmpl:ro
36+ logging :
37+ options :
38+ max-size : ${NGINX_GEN_LOG_MAX_SIZE:-2m}
39+ max-file : ${NGINX_GEN_LOG_MAX_FILE:-10}
3240
3341 nginx-letsencrypt :
3442 image : jrcs/letsencrypt-nginx-proxy-companion
35- container_name : ${LETS_ENCRYPT}
43+ container_name : ${LETS_ENCRYPT:-nginx-letsencrypt }
3644 restart : always
3745 volumes :
38- - ${NGINX_FILES_PATH}/conf.d:/etc/nginx/conf.d
39- - ${NGINX_FILES_PATH}/vhost.d:/etc/nginx/vhost.d
40- - ${NGINX_FILES_PATH}/html:/usr/share/nginx/html
41- - ${NGINX_FILES_PATH}/certs:/etc/nginx/certs:rw
46+ - ${NGINX_FILES_PATH:-data }/conf.d:/etc/nginx/conf.d
47+ - ${NGINX_FILES_PATH:-data }/vhost.d:/etc/nginx/vhost.d
48+ - ${NGINX_FILES_PATH:-data }/html:/usr/share/nginx/html
49+ - ${NGINX_FILES_PATH:-data }/certs:/etc/nginx/certs:rw
4250 - /var/run/docker.sock:/var/run/docker.sock:ro
4351 environment :
44- NGINX_DOCKER_GEN_CONTAINER : ${DOCKER_GEN}
45- NGINX_PROXY_CONTAINER : ${NGINX_WEB}
52+ NGINX_DOCKER_GEN_CONTAINER : ${DOCKER_GEN:-nginx-gen}
53+ NGINX_PROXY_CONTAINER : ${NGINX_WEB:-nginx-web}
54+ logging :
55+ options :
56+ max-size : ${NGINX_LETSENCRYPT_LOG_MAX_SIZE:-2m}
57+ max-file : ${NGINX_LETSENCRYPT_LOG_MAX_FILE:-10}
4658
4759networks :
4860 default :
4961 external :
50- name : ${NETWORK}
62+ name : ${NETWORK:-webproxy }
0 commit comments