-
Notifications
You must be signed in to change notification settings - Fork 1
/
production.yml
46 lines (41 loc) · 1.07 KB
/
production.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.2'
services:
db:
image: postgres:9.6
volumes:
- ./data/postgres-data:/var/lib/postgresql/data
server:
image: docker.pkg.github.com/toggle-corp/worldvision-dvs/server:release
env_file:
- .env-prod
volumes:
- server-static:/static
- ./data/media:/media
depends_on:
- db
client:
image: docker.pkg.github.com/toggle-corp/worldvision-dvs/client:release
volumes:
- client-static:/build/
env_file:
- .env-prod
command: bash -c '/code/scripts/sync_build.sh'
nginx: # NGINX Server
build: ./nginx
volumes:
- ./nginx/configs/:/etc/nginx/conf.d/:z
- server-static:/static/server/
- client-static:/static/client/
- ./data/media:/media/server/
- certs:/etc/letsencrypt
ports:
- '80:80'
- '443:443'
- '8080:80'
- '8005:8005'
depends_on:
- server
volumes:
server-static:
client-static:
certs: