-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-ci.yaml
96 lines (90 loc) · 2.36 KB
/
docker-compose-ci.yaml
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
version: '3'
services:
migrations:
image: $DOCKER_TAG
env_file:
- $ENV
command: npx prisma migrate reset --force
seed:
image: $DOCKER_TAG
env_file:
- $ENV
command: yarn seed-init
depends_on:
migrations:
condition: service_completed_successfully
seed-fake:
image: $DOCKER_TAG
env_file:
- $ENV
command: yarn seed-fake
restart: on-failure
depends_on:
migrations:
condition: service_completed_successfully
seed:
condition: service_completed_successfully
app-cabinet:
image: $DOCKER_TAG
container_name: SH-b-cabinet-$CI_COMMIT_BRANCH
restart: always
env_file:
- $ENV
ports:
- '$CABPORT:3000'
command: node ./dist/apps/cabinet/src/main.js
depends_on:
migrations:
condition: service_completed_successfully
seed:
condition: service_completed_successfully
seed-fake:
condition: service_completed_successfully
app-rating:
image: $DOCKER_TAG
container_name: SH-b-raiting-$CI_COMMIT_BRANCH
restart: always
env_file:
- $ENV
ports:
- '$RATINGPORT:3001'
command: node ./dist/apps/rating/src/main.js
depends_on:
migrations:
condition: service_completed_successfully
seed:
condition: service_completed_successfully
seed-fake:
condition: service_completed_successfully
app-employer:
image: $DOCKER_TAG
container_name: SH-b-employer-$CI_COMMIT_BRANCH
restart: always
env_file:
- $ENV
ports:
- '$EMPLOYERPORT:3002'
command: node ./dist/apps/employer/src/main.js
depends_on:
migrations:
condition: service_completed_successfully
seed:
condition: service_completed_successfully
seed-fake:
condition: service_completed_successfully
app-mobile:
image: $DOCKER_TAG
container_name: SH-b-mobile-$CI_COMMIT_BRANCH
restart: always
env_file:
- $ENV
ports:
- '$MOBILEPORT:3003'
command: node ./dist/apps/mobile/src/main.js
depends_on:
migrations:
condition: service_completed_successfully
seed:
condition: service_completed_successfully
seed-fake:
condition: service_completed_successfully