-
Notifications
You must be signed in to change notification settings - Fork 44
/
compose.yaml
58 lines (53 loc) · 1.15 KB
/
compose.yaml
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
name: java
services:
backend:
image: ${COMPOSE_PROJECT_NAME}
build: .
healthcheck:
test: "wget -qO- http://localhost:8080"
start_period: 20s
interval: 30s
timeout: 10s
retries: 5
depends_on:
rabbitmq:
condition: service_healthy
postgres:
condition: service_healthy
restart: unless-stopped
postgres:
image: postgres:16-alpine
volumes:
- postgres:/var/lib/postgresql/data
healthcheck:
test: "pg_isready"
interval: 10s
timeout: 10s
retries: 5
restart: unless-stopped
rabbitmq:
image: rabbitmq:3-management-alpine
volumes:
- rabbitmq:/var/lib/rabbitmq
healthcheck:
test: "rabbitmq-diagnostics check_running"
interval: 10s
timeout: 10s
retries: 5
restart: unless-stopped
nginx:
image: nginx:alpine
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
depends_on:
backend:
condition: service_healthy
healthcheck:
test: "wget -qO- http://nginx:80"
interval: 10s
timeout: 10s
retries: 5
restart: unless-stopped
volumes:
postgres:
rabbitmq: