multiple environments.

This commit is contained in:
Bryce Covert
2018-04-08 22:12:27 -07:00
parent 9dabb633a7
commit 2f400fc3c9
9 changed files with 33 additions and 25 deletions

View File

@@ -2,18 +2,21 @@ version: '3'
services:
nginx-proxy:
restart: always
ports:
- "80:80"
- "443:443"
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- /opt/integreat/certs/:/etc/nginx/certs:ro
- /opt/integreat/etc/nginx/vhost.d:/etc/nginx/vhost.d
- /opt/integreat/usr/share/nginx/html:/usr/share/nginx/html
- /opt/integreat/prod/certs/:/etc/nginx/certs:ro
- /opt/integreat/prod/etc/nginx/vhost.d:/etc/nginx/vhost.d
- /opt/integreat/prod/usr/share/nginx/html:/usr/share/nginx/html
letsencrypt:
restart: always
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- /opt/integreat/certs/:/etc/nginx/certs
- /opt/integreat/etc/nginx/vhost.d:/etc/nginx/vhost.d
- /opt/integreat/usr/share/nginx/html:/usr/share/nginx/html
- /opt/integreat/prod/certs/:/etc/nginx/certs
- /opt/integreat/prod/etc/nginx/vhost.d:/etc/nginx/vhost.d
- /opt/integreat/prod/usr/share/nginx/html:/usr/share/nginx/html
app:
restart: always
environment:
@@ -24,4 +27,4 @@ services:
database:
restart: always
volumes:
- /opt/integreat/var/lib/postgresql/data:/var/lib/postgresql/data
- /opt/integreat/prod/var/lib/postgresql/data:/var/lib/postgresql/data