-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
83 lines (83 loc) · 2.07 KB
/
Copy pathdocker-compose.yml
File metadata and controls
83 lines (83 loc) · 2.07 KB
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
version: "3.9"
services:
configuration-server:
build: ./configuration-server/
ports:
- "8888:8888"
restart: always
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8888/actuator/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 15s
discovery-service:
build: ./discovery-service/
depends_on:
- configuration-server
ports:
- "8761:8761"
restart: always
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:8761/actuator/health" ]
interval: 30s
timeout: 10s
retries: 3
start_period: 15s
gateway-server:
build: ./gateway-server/
depends_on:
configuration-server:
condition: service_healthy
discovery-service:
condition: service_healthy
ports:
- "8072:8072"
restart: always
results-service:
build: ./results-service/
depends_on:
configuration-server:
condition: service_healthy
discovery-service:
condition: service_healthy
restart: always
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:8081/actuator/health" ]
interval: 30s
timeout: 10s
retries: 3
start_period: 15s
pool-service:
build: ./pool-service/
depends_on:
postgres:
condition: service_healthy
configuration-server:
condition: service_healthy
discovery-service:
condition: service_healthy
restart: always
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:8072/actuator/health" ]
interval: 30s
timeout: 10s
retries: 3
start_period: 15s
postgres:
image: postgres:16.4
restart: always
environment:
- 'POSTGRES_DB=pool'
- 'POSTGRES_PASSWORD=pgadmin'
- 'POSTGRES_USER=pool'
ports:
- "5432:5432"
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U pool -d pool" ]
interval: 30s
timeout: 10s
retries: 5
start_period: 10s
# volumes:
# - "./<your_sql_file_name_here>.sql:/docker-entrypoint-initdb.d/1.sql"