-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
59 lines (55 loc) · 1.36 KB
/
docker-compose.yml
File metadata and controls
59 lines (55 loc) · 1.36 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
services:
rabbitmq:
container_name: rabbitmq
image: rabbitmq:3-management
ports:
# AMQP port
- "5672:5672"
# Management UI
- "15672:15672"
environment:
RABBITMQ_DEFAULT_USER: admin
RABBITMQ_DEFAULT_PASS: admin
volumes:
- rabbitmq_data:/var/lib/rabbitmq
restart: unless-stopped
healthcheck:
test: [ "CMD", "rabbitmq-diagnostics", "check_running" ]
interval: 5s
timeout: 5s
retries: 12
start_period: 10s
web_api:
image: telemetry-web-api:0.0.1-SNAPSHOT
depends_on:
rabbitmq:
condition: service_healthy
environment:
RABBITMQ_HOST: rabbitmq
# ports:
# - "8080:8080" # change container port if needed
expose:
- "8080"
restart: unless-stopped
nginx:
container_name: nginx
image: nginx:latest
ports:
- "8080:80"
depends_on:
- web_api
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
report_service:
container_name: report_service
image: telemetry-report-service:0.0.1-SNAPSHOT
depends_on:
- rabbitmq
environment:
RABBITMQ_HOST: rabbitmq
# If you want to access the service from the host, map to a unique host port
ports:
- "8081:8080" # change container port if your app listens on another port
restart: unless-stopped
volumes:
rabbitmq_data: