-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
46 lines (42 loc) · 1.16 KB
/
docker-compose.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
environment:
POSTGRES_PASSWORD: postgres
volumes:
- postgres-data:/var/lib/postgresql/data
server:
image: "docker.pkg.github.com/toggle-corp/worldvision-dvs/server:${WV_BRANCH_NAME:-develop}"
build:
context: ./server/
cache_from:
- "docker.pkg.github.com/toggle-corp/worldvision-dvs/server:${WV_BRANCH_NAME}"
- docker.pkg.github.com/toggle-corp/worldvision-dvs/server:develop
env_file:
- .env
command: /code/scripts/run_develop.sh
volumes:
- ./server/:/code
- media:/media
ports:
- '8005:8005'
depends_on:
- db
client:
image: "docker.pkg.github.com/toggle-corp/worldvision-dvs/client:${WV_BRANCH_NAME:-develop}"
build:
context: ./client/
cache_from:
- "docker.pkg.github.com/toggle-corp/worldvision-dvs/client:${WV_BRANCH_NAME}"
- docker.pkg.github.com/toggle-corp/worldvision-dvs/client:develop
env_file:
- .env
command: bash -c '/code/scripts/run_develop.sh'
volumes:
- ./client/:/code
ports:
- '3005:3005'
volumes:
media:
postgres-data: