-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.local.yaml
109 lines (98 loc) · 2.87 KB
/
docker-compose.local.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
97
98
99
100
101
102
103
104
105
106
107
108
109
version: '3.8'
services:
postgres-user-db:
image: postgres:16
env_file:
- ./microservices/user-service/.env
volumes:
- ./microservices/user-service/init_scripts/01_ddl.sql:/docker-entrypoint-initdb.d/01_ddl.sql
healthcheck:
test: [ "CMD-SHELL", "pg_isready -q -d $${POSTGRES_DB} -U $${POSTGRES_USER}" ]
interval: 5s
timeout: 2s
retries: 10
postgres-exercise-db:
image: postgres:16
env_file:
- ./microservices/exercise-service/.env
volumes:
- ./microservices/exercise-service/init_scripts/01_ddl.sql:/docker-entrypoint-initdb.d/01_ddl.sql
healthcheck:
test: [ "CMD-SHELL", "pg_isready -q -d $${POSTGRES_DB} -U $${POSTGRES_USER}" ]
interval: 5s
timeout: 10s
retries: 10
postgres-workout-db:
image: postgres:16
env_file:
- ./microservices/workout-service-java/.env
volumes:
- ./microservices/workout-service-java/init_scripts/01_ddl.sql:/docker-entrypoint-initdb.d/01_ddl.sql
healthcheck:
test: [ "CMD-SHELL", "pg_isready -q -d $${POSTGRES_DB} -U $${POSTGRES_USER}" ]
interval: 5s
timeout: 10s
retries: 10
auth-server:
build: microservices/authorization-server
environment:
- SPRING_PROFILES_ACTIVE=docker
healthcheck:
test: [ "CMD", "curl", "-fs", "http://localhost:9999/actuator/health" ]
interval: 5s
timeout: 2s
retries: 10
api-gateway:
build: microservices/api-gateway
environment:
- SPRING_PROFILES_ACTIVE=docker
healthcheck:
test: [ "CMD", "curl", "-fs", "http://localhost:8443/actuator/health" ]
interval: 5s
timeout: 2s
retries: 10
user-service:
build: microservices/user-service
environment:
- SPRING_PROFILES_ACTIVE=docker
depends_on:
postgres-user-db:
condition: service_healthy
healthcheck:
test: [ "CMD", "curl", "-fs", "http://localhost:8080/actuator/health" ]
interval: 5s
timeout: 2s
retries: 10
exercise-service:
build: microservices/exercise-service
depends_on:
postgres-exercise-db:
condition: service_healthy
workout-service:
build: microservices/workout-service-java
environment:
- SPRING_PROFILES_ACTIVE=docker
depends_on:
postgres-workout-db:
condition: service_healthy
healthcheck:
test: [ "CMD", "curl", "-fs", "http://localhost:3000/actuator/health" ]
interval: 5s
timeout: 2s
retries: 10
analytics-service:
build: microservices/analytics-service
environment:
- SPRING_PROFILES_ACTIVE=docker
frontend:
build: microservices/frontend/FE_Fitness_Tracker
ports:
- "80:80"
healthcheck:
test: [ "CMD-SHELL", "curl -fs http://localhost:80" ]
interval: 5s
timeout: 2s
retries: 10
depends_on:
postgres-user-db:
condition: service_healthy