-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
38 lines (38 loc) · 1.05 KB
/
docker-compose.yaml
File metadata and controls
38 lines (38 loc) · 1.05 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
services:
app:
build: ./
environment:
robonauth.api-key: BSS
spring.mongodb.host: mongo
spring.rabbitmq.host: rabbitmq
profiles:
- app
ports:
- "127.0.0.1:8080:8080"
healthcheck:
test: "wget --tries=1 --no-verbose -qO- http://localhost:8080/actuator/health/readiness | grep -q UP"
interval: 20s
timeout: 5s
retries: 5
start_period: 40s
rabbitmq:
image: "rabbitmq:4.3.0-management-alpine@sha256:1a43764bdcf116542e7c8c794adc67c79461727da16d474e9e21483fe7f716d3"
ports:
- "127.0.0.1:5672:5672"
- "127.0.0.1:15672:15672"
healthcheck:
test: rabbitmq-diagnostics -q ping
interval: 30s
timeout: 30s
retries: 5
start_period: 40s
mongo:
image: "mongo:8.3.2@sha256:94b405c5aa83d5160e6dd97383c4687d471f8a6bd247ed3ff6463c092ebf7a8c"
ports:
- "127.0.0.1:27017:27017"
healthcheck:
test: echo 'db.runCommand("ping").ok' | mongosh mongo:27017/test --quiet
interval: 10s
timeout: 10s
retries: 5
start_period: 40s