-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.prod.yml
46 lines (46 loc) · 1.12 KB
/
docker-compose.prod.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
version: '3'
services:
web:
build:
dockerfile: Dockerfile.prod
environment:
- SENTRY_DSN
- VIRTUAL_HOST=clasificahumor.com,www.clasificahumor.com
- LETSENCRYPT_HOST=clasificahumor.com,www.clasificahumor.com
- LETSENCRYPT_EMAIL=sacastro@fing.edu.uy
networks:
- reverse_proxy_net
restart: always
database:
restart: always
nginx-proxy:
image: jwilder/nginx-proxy
labels:
com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy: "true"
ports:
- '80:80'
- '443:443'
volumes:
- certs:/etc/nginx/certs:ro
- vhost:/etc/nginx/vhost.d
- html:/usr/share/nginx/html
- /var/run/docker.sock:/tmp/docker.sock:ro
networks:
- reverse_proxy_net
restart: always
letsencrypt:
image: jrcs/letsencrypt-nginx-proxy-companion
volumes:
- certs:/etc/nginx/certs:rw
- vhost:/etc/nginx/vhost.d
- html:/usr/share/nginx/html
- /var/run/docker.sock:/var/run/docker.sock:ro
networks:
- reverse_proxy_net
restart: always
networks:
reverse_proxy_net:
volumes:
certs:
html:
vhost: