-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
79 lines (76 loc) · 1.92 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
services:
auth-server:
profiles:
- dev
container_name: tms-auth-container
build: auth-server
image: tms-auth-image
restart: "no"
ports:
- "9090:9090"
healthcheck:
test: wget --no-verbose --tries=1 --spider http://localhost:9090/actuator/health || exit 1
interval: 30s
timeout: 5s
start_period: 30s
retries: 5
labels:
amplicode.image: tms-auth-server
environment:
- TASK_SERVER_URL=http://server:8080
- SPRING_DATASOURCE_URL=jdbc:postgresql://db:5433/auth
- SPRING_DATASOURCE_USERNAME=auth
- SPRING_DATASOURCE_PASSWORD=auth
depends_on:
- db-auth
task-manager-server:
profiles:
- dev
container_name: task-manager-server
build: task-manager-server
image: task-manager-image
restart: "no"
ports:
- "8080:8080"
healthcheck:
test: wget --no-verbose --tries=1 --spider http://localhost:8080/actuator/health || exit 1
interval: 30s
timeout: 5s
start_period: 30s
retries: 5
labels:
amplicode.image: task-manager-server
depends_on:
- db-tms
environment:
- SPRING_DATASOURCE_URL=jdbc:postgresql://db:5432/tms
- SPRING_DATASOURCE_USERNAME=tms
- SPRING_DATASOURCE_PASSWORD=tms
db-tms:
image: postgres:16.1
container_name: postgres-tms
ports:
- "6541:5432"
environment:
- POSTGRES_PASSWORD=tms
- POSTGRES_USER=tms
- POSTGRES_DB=tms
healthcheck:
test: pg_isready -q -d $$POSTGRES_DB -U $$POSTGRES_USER
timeout: 5s
interval: 5s
retries: 10
db-auth:
image: postgres:16.1
container_name: postgres-auth
ports:
- "6542:5433"
environment:
- POSTGRES_PASSWORD=auth
- POSTGRES_USER=auth
- POSTGRES_DB=auth
healthcheck:
test: pg_isready -q -d $$POSTGRES_DB -U $$POSTGRES_USER
timeout: 5s
interval: 5s
retries: 10