-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
45 lines (42 loc) · 925 Bytes
/
docker-compose.yml
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
version: "3"
services:
rabbitmq:
image: rabbitmq:3-management
ports:
- "5672:5672"
- "15672:15672"
networks:
- calculator-net
volumes:
- type: bind
source: ./definitions.json
target: /etc/rabbitmq/definitions.json
environment:
RABBITMQ_DEFAULT_USER: user
RABBITMQ_DEFAULT_PASS: password
healthcheck:
test: rabbitmq-diagnostics check_port_connectivity
interval: 1s
timeout: 3s
retries: 30
calculator-client:
build:
context: .
dockerfile: Dockerfile
depends_on:
rabbitmq:
condition: service_healthy
networks:
- calculator-net
calculator-handler:
build:
context: .
dockerfile: ./CalculatorHandler.DockerFile
depends_on:
rabbitmq:
condition: service_healthy
networks:
- calculator-net
networks:
calculator-net:
driver: bridge