-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
57 lines (54 loc) · 1.01 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
47
48
49
50
51
52
53
54
55
56
57
services:
app-dev:
build:
context: ./
dockerfile: ./app/dev.Dockerfile
env_file: .env
ports:
- $APP_PORT:$APP_PORT
volumes:
- ./app:/app
- /app/node_modules
depends_on:
- db
- sports-db
profiles:
- dev
app-prod:
build:
context: ./
dockerfile: ./app/prod.Dockerfile
env_file: .env
ports:
- $APP_PORT:$APP_PORT
depends_on:
- db
- sports-db
profiles:
- prod
db:
build:
context: ./db
env_file: .env
ports:
- $PB_PORT:$PB_PORT
volumes:
- ./db/migrations:/pb/pb_migrations
- ./db/data:/pb/pb_data
- ./db/hooks:/pb/pb_hooks
profiles:
- dev
- prod
sports-db:
build:
dockerfile: ../db/Dockerfile
context: ./sports_db
env_file: .env
ports:
- $SPORTS_PB_PORT:$PB_PORT
volumes:
- ./sports_db/migrations:/pb/pb_migrations
- ./sports_db/data:/pb/pb_data
profiles:
- dev
- prod