-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
86 lines (80 loc) · 1.75 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
79
80
81
82
83
84
85
86
services:
db:
image: mysql
container_name: spacelab_db
ports:
- "3306:3306"
environment:
- MYSQL_ROOT_PASSWORD=root
networks:
- spacelab
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
timeout: 5s
retries: 10
admin_frontend:
image: temporalparadox/spacelab_admin_front:deploy_local
container_name: spacelab_admin_front
ports:
- "3000:3000"
networks:
- spacelab
depends_on:
db:
condition: service_healthy
admin_backend:
image: temporalparadox/spacelab_admin_api:deploy_local
container_name: spacelab_admin_api
ports:
- "1489:1489"
links:
- "db:spacelab_db"
- "db:mysql"
networks:
- spacelab
environment:
- SPRING_PROFILES_ACTIVE=prod
depends_on:
db:
condition: service_healthy
cabinet_frontend:
image: temporalparadox/spacelab_personal_cabinet_front:deploy_local
container_name: spacelab_personal_cabinet_front
ports:
- "3001:3000"
networks:
- spacelab
depends_on:
db:
condition: service_healthy
cabinet_backend:
image: temporalparadox/spacelab_personal_cabinet_api:deploy_local
container_name: spacelab_personal_cabinet_api
ports:
- "1488:1488"
links:
- "db:spacelab_db"
- "db:mysql"
networks:
- spacelab
environment:
- SPRING_PROFILES_ACTIVE=prod
depends_on:
db:
condition: service_healthy
proxy:
image: nginx
container_name: nginx
ports:
- "80:80"
networks:
- spacelab
depends_on:
- db
- admin_backend
- admin_frontend
- cabinet_backend
- cabinet_frontend
networks:
spacelab:
name: spacelab