-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
138 lines (132 loc) · 3.29 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
version: '3.3'
services:
# Database containers
postgres-db:
container_name: postgres-db
image: postgres:latest
restart: always
environment:
POSTGRES_PASSWORD: ${AUTH_DB_PASSWORD}
POSTGRES_USER: ${AUTH_DB_USERNAME}
POSTGRES_DB: ${AUTH_DB_NAME}
ports:
- "5432:5432"
minio-db:
container_name: minio-db
image: quay.io/minio/minio:latest
command: server --console-address ":9090" /data
environment:
MINIO_ROOT_USER: ${MINIO_USERNAME}
MINIO_ROOT_PASSWORD: ${MINIO_PASSWORD}
volumes:
- $HOME/minio/data:/data
ports:
- "9000:9000"
- "9090:9090"
authentication-service:
container_name: auth-service
image: authentication-service
ports:
- "8081:8081"
environment:
AUTH_DB_URL: ${AUTH_DB_URL}
AUTH_DB_NAME: ${AUTH_DB_NAME}
AUTH_DB_PASSWORD: ${AUTH_DB_PASSWORD}
AUTH_DB_USERNAME: ${AUTH_DB_USERNAME}
healthcheck:
test:
[
"CMD-SHELL",
"curl -f http://localhost:8081/actuator/health || exit 1"
]
interval: 10s
timeout: 10s
retries: 5
depends_on:
discovery-service:
condition: service_healthy
gateway-service:
condition: service_healthy
resource-service:
condition: service_healthy
postgres-db:
condition: service_started
resource-service:
image: resource-manager-service
container_name: resource-manager-service
ports:
- "8083:8083"
environment:
MINIO_URL: ${MINIO_URL}
MINIO_USERNAME: ${MINIO_USERNAME}
MINIO_PASSWORD: ${MINIO_PASSWORD}
healthcheck:
test:
[
"CMD-SHELL",
"curl -f http://localhost:8083/actuator/health || exit 1"
]
interval: 10s
timeout: 10s
retries: 5
depends_on:
discovery-service:
condition: service_healthy
gateway-service:
condition: service_healthy
metadata-db-manager-service:
condition: service_healthy
minio-db:
condition: service_started
metadata-db-manager-service:
container_name: metadata-db-manager-service
image: metadata-db-manager-service
ports:
- "8082:8082"
environment:
NEO4J_USERNAME: ${NEO4J_USERNAME}
NEO4J_PASSWORD: ${NEO4J_PASSWORD}
NEO4J_URI: ${NEO4J_URI}
healthcheck:
test:
[
"CMD-SHELL",
"curl -f http://localhost:8082/actuator/health || exit 1"
]
interval: 10s
timeout: 10s
retries: 5
depends_on:
discovery-service:
condition: service_healthy
gateway-service:
condition: service_healthy
gateway-service:
container_name: gateway-service
image: gateway-service
ports:
- "8080:8080"
healthcheck:
test:
[
"CMD-SHELL",
"curl -f http://localhost:8080/actuator/health || exit 1"
]
interval: 10s
timeout: 10s
retries: 5
depends_on:
discovery-service:
condition: service_healthy
discovery-service:
container_name: discovery-service
image: discovery-service
ports:
- "8761:8761"
expose:
- 8761
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:8761" ]
interval: 10s
timeout: 10s
retries: 5