-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
78 lines (77 loc) · 1.39 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
version: '3.9'
services:
web:
build:
context: .
dockerfile: Dockerfile-web
env_file:
- app.env
ports:
- "3000:3000"
- "8080:8080"
- "9090:9090"
volumes:
- ./:/app:delegated
depends_on:
- "db"
container_name: web
restart: always
db:
image: postgres:alpine
restart: always
env_file:
- app.env
ports:
- "5432:5432"
volumes:
- postgres-db:/var/lib/postgresql/data
container_name: db
generate-models:
build:
context: .
dockerfile: Dockerfile-models
depends_on:
- "db"
command: sqlboiler psql --add-global-variants
volumes:
- ./:/app
container_name: "generate-models"
restart: "no"
profiles:
- manual
proto-generator:
build:
context: .
dockerfile: Dockerfile-proto
command: ./scripts/generate_proto.sh
volumes:
- ./:/app
container_name: proto-generator
profiles:
- manual
test:
build:
context: .
dockerfile: Dockerfile-test
volumes:
- ./:/app
depends_on:
- "web"
container_name: test
profiles:
- manual
seeder:
build:
context: .
dockerfile: Dockerfile-seed
env_file:
- app.env
volumes:
- ./:/app:delegated
depends_on:
- "db"
container_name: seeder
profiles:
- manual
volumes:
postgres-db: