-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
213 lines (198 loc) · 5.98 KB
/
docker-compose.yaml
File metadata and controls
213 lines (198 loc) · 5.98 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
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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
services:
api-gateway:
image: nginx:alpine
volumes:
- ./api/nginx.conf:/etc/nginx/conf.d/default.conf:ro
ports:
- "8081:81"
depends_on:
- client
postgres:
image: postgres:alpine
container_name: oopsops-dbs
environment:
POSTGRES_USER: dev_user
POSTGRES_PASSWORD: dev_pass
ports:
- "5432:5432"
volumes:
- postgres-data:/var/lib/postgresql/data
- ./create-multiple-dbs.sh:/docker-entrypoint-initdb.d/create-multiple-dbs.sh
healthcheck:
test: ["CMD-SHELL", "pg_isready -U dev_user"]
interval: 10s
timeout: 5s
retries: 5
document-service:
image: ghcr.io/aet-devops25/team-oopsops/server/document-service:latest
build:
context: ./server
dockerfile: document-service/Dockerfile
ports:
- "8091:8091"
environment:
- SPRING_PROFILES_ACTIVE=dev
- SPRING_DATASOURCE_URL=jdbc:postgresql://postgres:5432/documentdb
- SPRING_DATASOURCE_USERNAME=dev_user
- SPRING_DATASOURCE_PASSWORD=dev_pass
volumes:
- ./uploads:/app/uploads
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8091/actuator/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
restart: unless-stopped
anonymization-service:
image: ghcr.io/aet-devops25/team-oopsops/server/anonymization-service:latest
build:
context: ./server
dockerfile: anonymization-service/Dockerfile
ports:
- "8094:8094"
environment:
- SPRING_PROFILES_ACTIVE=dev
- SPRING_DATASOURCE_URL=jdbc:postgresql://postgres:5432/anonymizationdb
- SPRING_DATASOURCE_USERNAME=dev_user
- SPRING_DATASOURCE_PASSWORD=dev_pass
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8094/actuator/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
restart: unless-stopped
authentication-service:
image: ghcr.io/aet-devops25/team-oopsops/server/authentication-service:latest
build:
context: ./server
dockerfile: authentication-service/Dockerfile
ports:
- "8092:8092"
environment:
- SPRING_PROFILES_ACTIVE=dev
- SPRING_DATASOURCE_URL=jdbc:postgresql://postgres:5432/authdb
- SPRING_DATASOURCE_USERNAME=dev_user
- SPRING_DATASOURCE_PASSWORD=dev_pass
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8092/actuator/health"]
interval: 10s
timeout: 5s
retries: 5
start_period: 30s
genai-service:
image: ghcr.io/aet-devops25/team-oopsops/genai-service:latest
build:
context: ./genai-service
dockerfile: Dockerfile
ports:
- "8000:8000"
environment:
- OPENAI_API_KEY=${OPENAI_API_KEY}
- ANONYMIZATION_SERVICE_URL=http://anonymization-service:8094/api/v1/anonymization
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
restart: unless-stopped
client:
image: ghcr.io/aet-devops25/team-oopsops/client:latest
build:
context: ./client
dockerfile: Dockerfile
args:
VITE_API_URL: http://localhost:8081
ports:
- "3000:80"
restart: unless-stopped
pgadmin:
image: dpage/pgadmin4:7
container_name: pgadmin
environment:
PGADMIN_DEFAULT_EMAIL: admin@admin.com
PGADMIN_DEFAULT_PASSWORD: admin
ports:
- "5050:80"
depends_on:
- postgres
volumes:
- pgadmin-data:/var/lib/pgadmin
keycloak:
image: quay.io/keycloak/keycloak:22.0.3
command: start-dev --import-realm
volumes:
- ./keycloak:/opt/keycloak/data/import
environment:
KC_HEALTH_ENABLED: "true"
KEYCLOAK_ADMIN: admin
KEYCLOAK_ADMIN_PASSWORD: admin
healthcheck:
test: ["CMD-SHELL", "exec 3<>/dev/tcp/127.0.0.1/9000;echo -e 'GET /health/ready HTTP/1.1\r\nhost: http://localhost\r\nConnection: close\r\n\r\n' >&3;if [ $? -eq 0 ]; then echo 'Healthcheck Successful';exit 0;else echo 'Healthcheck Failed';exit 1;fi;"]
interval: 30s
timeout: 10s
retries: 3
ports:
- "8085:8080"
restart: unless-stopped
# prometheus:
# image: prom/prometheus:v2.52.0
# container_name: prometheus
# ports:
# - "9090:9090"
# volumes:
# - ./prometheus:/etc/prometheus
# - prometheus_data:/prometheus
# command:
# - '--config.file=/etc/prometheus/prometheus.yml'
# - '--storage.tsdb.path=/prometheus'
# - '--web.console.libraries=/etc/prometheus/console_libraries'
# - '--web.console.templates=/etc/prometheus/consoles'
# - '--web.enable-lifecycle'
# restart: unless-stopped
# grafana:
# image: grafana/grafana-oss:latest
# container_name: grafana
# ports:
# - "3001:3000"
# volumes:
# - grafana-storage:/var/lib/grafana
# - ./grafana/provisioning:/etc/grafana/provisioning:ro
# environment:
# - GF_SECURITY_ADMIN_USER=admin
# - GF_SECURITY_ADMIN_PASSWORD=admin
# - GF_USERS_ALLOW_SIGN_UP=false
# - GF_FEATURE_TOGGLES_ENABLE=logsInExplore
# - GF_LOG_CONSOLECOLORS=true
# # entrypoint: ["sh", "-c", "/etc/grafana/provisioning/init_grafana.sh"]
# depends_on:
# - prometheus
# - loki
# restart: unless-stopped
# promtail:
# image: grafana/promtail:latest
# volumes:
# - /var/lib/docker/containers:/var/lib/docker/containers:ro
# - ./promtail/promtail.yml:/etc/promtail/promtail.yml
# command: -config.file=/etc/promtail/promtail.yml
# depends_on:
# - loki
# restart: unless-stopped
# loki:
# image: grafana/loki:2.9.0
# ports:
# - "3100:3100"
# volumes:
# - ./loki/loki-config.yaml:/etc/loki/loki-config.yaml:ro
# - loki-data:/loki
# command: -config.file=/etc/loki/loki-config.yaml
# restart: unless-stopped
volumes:
postgres-data:
pgadmin-data:
genai-chroma-data:
# prometheus_data:
# grafana-storage:
# loki-data: