-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
40 lines (38 loc) · 912 Bytes
/
docker-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
services:
rabbitmq:
image: rabbitmq:3.13
container_name: rabbitmq
ports:
- "15672:15672"
- "5672:5672"
environment:
RABBITMQ_DEFAULT_USER: guest
RABBITMQ_DEFAULT_PASS: guest
RABBITMQ_SERVER_ADDITIONAL_ERL_ARGS: "-rabbitmq_stream advertised_host localhost"
RABBITMQ_MANAGEMENT_ENABLED: "true"
restart: unless-stopped
command: >
sh -c "rabbitmq-plugins enable rabbitmq_management &&
rabbitmq-server"
networks:
- app-network
healthcheck:
test: ["CMD", "rabbitmq-diagnostics", "status"]
interval: 20s
retries: 10
start_period: 60s
timeout: 10s
webapp:
build:
context: .
dockerfile: Dockerfile
ports:
- "5000:8080"
depends_on:
rabbitmq:
condition: service_healthy
networks:
- app-network
networks:
app-network:
driver: bridge