-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.prod.yml
49 lines (44 loc) · 1.23 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
47
48
49
version: '2'
services:
postgres:
image: postgres:latest
environment:
- POSTGRES_USER=bpleague
- POSTGRES_PASSWORD=bpleague
volumes:
- ./volumes/postgres:/var/lib/postgresql/data
bpleague-back:
build: ./back/
volumes:
- ./volumes/logs:/logs
environment:
- VIRTUAL_HOST=api.bpleague.cs-campus.fr
- LETSENCRYPT_HOST=api.bpleague.cs-campus.fr
bpleague-front:
image: nginx:latest
volumes:
- ./front/dist:/usr/share/nginx/html:ro
environment:
- VIRTUAL_HOST=bpleague.cs-campus.fr
- LETSENCRYPT_HOST=bpleague.cs-campus.fr
proxy:
image: jwilder/nginx-proxy:latest
labels:
- com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy
volumes:
- /usr/share/nginx/html
- ./front/certs:/etc/nginx/certs:ro
- /etc/nginx/vhost.d
- /var/run/docker.sock:/tmp/docker.sock:ro
ports:
- 80:80
- 443:443
letsencrypt:
image: jrcs/letsencrypt-nginx-proxy-companion:latest
volumes_from:
- proxy
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./front/certs:/etc/nginx/certs:rw