Skip to content

Commit

Permalink
default values for variables
Browse files Browse the repository at this point in the history
  • Loading branch information
evertramos committed Jan 24, 2018
1 parent 6d1ef20 commit 4e32004
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 34 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
.env
data
.env*
!.env.sample
34 changes: 17 additions & 17 deletions docker-compose-multiple-networks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ services:
container_name: ${NGINX_WEB:-nginx-web}
restart: always
ports:
- "${IP}:80:80"
- "${IP}:443:443"
- "${IP:-0.0.0.0}:80:80"
- "${IP:-0.0.0.0}:443:443"
volumes:
- ${NGINX_FILES_PATH:-data}/conf.d:/etc/nginx/conf.d
- ${NGINX_FILES_PATH:-data}/vhost.d:/etc/nginx/vhost.d
- ${NGINX_FILES_PATH:-data}/html:/usr/share/nginx/html
- ${NGINX_FILES_PATH:-data}/certs:/etc/nginx/certs:ro
- ${NGINX_FILES_PATH:-data}/htpasswd:/etc/nginx/htpasswd:ro
- ${NGINX_FILES_PATH:-./data}/conf.d:/etc/nginx/conf.d
- ${NGINX_FILES_PATH:-./data}/vhost.d:/etc/nginx/vhost.d
- ${NGINX_FILES_PATH:-./data}/html:/usr/share/nginx/html
- ${NGINX_FILES_PATH:-./data}/certs:/etc/nginx/certs:ro
- ${NGINX_FILES_PATH:-./data}/htpasswd:/etc/nginx/htpasswd:ro
networks:
- default
- outside
Expand All @@ -29,11 +29,11 @@ services:
container_name: ${DOCKER_GEN:-nginx-gen}
restart: always
volumes:
- ${NGINX_FILES_PATH:-data}/conf.d:/etc/nginx/conf.d
- ${NGINX_FILES_PATH:-data}/vhost.d:/etc/nginx/vhost.d
- ${NGINX_FILES_PATH:-data}/html:/usr/share/nginx/html
- ${NGINX_FILES_PATH:-data}/certs:/etc/nginx/certs:ro
- ${NGINX_FILES_PATH:-data}/htpasswd:/etc/nginx/htpasswd:ro
- ${NGINX_FILES_PATH:-./data}/conf.d:/etc/nginx/conf.d
- ${NGINX_FILES_PATH:-./data}/vhost.d:/etc/nginx/vhost.d
- ${NGINX_FILES_PATH:-./data}/html:/usr/share/nginx/html
- ${NGINX_FILES_PATH:-./data}/certs:/etc/nginx/certs:ro
- ${NGINX_FILES_PATH:-./data}/htpasswd:/etc/nginx/htpasswd:ro
- /var/run/docker.sock:/tmp/docker.sock:ro
- ./nginx.tmpl:/etc/docker-gen/templates/nginx.tmpl:ro
networks:
Expand All @@ -49,10 +49,10 @@ services:
container_name: ${LETS_ENCRYPT:-nginx-letsencrpt}
restart: always
volumes:
- ${NGINX_FILES_PATH:-data}/conf.d:/etc/nginx/conf.d
- ${NGINX_FILES_PATH:-data}/vhost.d:/etc/nginx/vhost.d
- ${NGINX_FILES_PATH:-data}/html:/usr/share/nginx/html
- ${NGINX_FILES_PATH:-data}/certs:/etc/nginx/certs:rw
- ${NGINX_FILES_PATH:-./data}/conf.d:/etc/nginx/conf.d
- ${NGINX_FILES_PATH:-./data}/vhost.d:/etc/nginx/vhost.d
- ${NGINX_FILES_PATH:-./data}/html:/usr/share/nginx/html
- ${NGINX_FILES_PATH:-./data}/certs:/etc/nginx/certs:rw
- /var/run/docker.sock:/var/run/docker.sock:ro
environment:
NGINX_DOCKER_GEN_CONTAINER: ${DOCKER_GEN:-nginx-gen}
Expand All @@ -71,4 +71,4 @@ networks:
name: ${NETWORK:-webproxy}
outside:
external:
name: ${SERVICE_NETWORK}
name: ${SERVICE_NETWORK:-webservices}
32 changes: 16 additions & 16 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ services:
container_name: ${NGINX_WEB:-nginx-web}
restart: always
ports:
- "${IP}:80:80"
- "${IP}:443:443"
- "${IP:-0.0.0.0}:80:80"
- "${IP:-0.0.0.0}:443:443"
volumes:
- ${NGINX_FILES_PATH:-data}/conf.d:/etc/nginx/conf.d
- ${NGINX_FILES_PATH:-data}/vhost.d:/etc/nginx/vhost.d
- ${NGINX_FILES_PATH:-data}/html:/usr/share/nginx/html
- ${NGINX_FILES_PATH:-data}/certs:/etc/nginx/certs:ro
- ${NGINX_FILES_PATH:-data}/htpasswd:/etc/nginx/htpasswd:ro
- ${NGINX_FILES_PATH:-./data}/conf.d:/etc/nginx/conf.d
- ${NGINX_FILES_PATH:-./data}/vhost.d:/etc/nginx/vhost.d
- ${NGINX_FILES_PATH:-./data}/html:/usr/share/nginx/html
- ${NGINX_FILES_PATH:-./data}/certs:/etc/nginx/certs:ro
- ${NGINX_FILES_PATH:-./data}/htpasswd:/etc/nginx/htpasswd:ro
logging:
options:
max-size: ${NGINX_WEB_LOG_MAX_SIZE:-4m}
Expand All @@ -26,11 +26,11 @@ services:
container_name: ${DOCKER_GEN:-nginx-gen}
restart: always
volumes:
- ${NGINX_FILES_PATH:-data}/conf.d:/etc/nginx/conf.d
- ${NGINX_FILES_PATH:-data}/vhost.d:/etc/nginx/vhost.d
- ${NGINX_FILES_PATH:-data}/html:/usr/share/nginx/html
- ${NGINX_FILES_PATH:-data}/certs:/etc/nginx/certs:ro
- ${NGINX_FILES_PATH:-data}/htpasswd:/etc/nginx/htpasswd:ro
- ${NGINX_FILES_PATH:-./data}/conf.d:/etc/nginx/conf.d
- ${NGINX_FILES_PATH:-./data}/vhost.d:/etc/nginx/vhost.d
- ${NGINX_FILES_PATH:-./data}/html:/usr/share/nginx/html
- ${NGINX_FILES_PATH:-./data}/certs:/etc/nginx/certs:ro
- ${NGINX_FILES_PATH:-./data}/htpasswd:/etc/nginx/htpasswd:ro
- /var/run/docker.sock:/tmp/docker.sock:ro
- ./nginx.tmpl:/etc/docker-gen/templates/nginx.tmpl:ro
logging:
Expand All @@ -43,10 +43,10 @@ services:
container_name: ${LETS_ENCRYPT:-nginx-letsencrypt}
restart: always
volumes:
- ${NGINX_FILES_PATH:-data}/conf.d:/etc/nginx/conf.d
- ${NGINX_FILES_PATH:-data}/vhost.d:/etc/nginx/vhost.d
- ${NGINX_FILES_PATH:-data}/html:/usr/share/nginx/html
- ${NGINX_FILES_PATH:-data}/certs:/etc/nginx/certs:rw
- ${NGINX_FILES_PATH:-./data}/conf.d:/etc/nginx/conf.d
- ${NGINX_FILES_PATH:-./data}/vhost.d:/etc/nginx/vhost.d
- ${NGINX_FILES_PATH:-./data}/html:/usr/share/nginx/html
- ${NGINX_FILES_PATH:-./data}/certs:/etc/nginx/certs:rw
- /var/run/docker.sock:/var/run/docker.sock:ro
environment:
NGINX_DOCKER_GEN_CONTAINER: ${DOCKER_GEN:-nginx-gen}
Expand Down

0 comments on commit 4e32004

Please sign in to comment.