-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
52 lines (44 loc) · 1.05 KB
/
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
46
47
48
49
50
51
52
version: '3.4'
name: rabbitmq-test
services:
producer:
image: ${DOCKER_REGISTRY-}producer
restart: on-failure:10
build:
context: .
dockerfile: Producer/Dockerfile
consumer1:
image: ${DOCKER_REGISTRY-}consumer1
restart: on-failure:10
build:
context: .
dockerfile: Consumer1/Dockerfile
consumer2:
image: ${DOCKER_REGISTRY-}consumer2
restart: on-failure:10
build:
context: .
dockerfile: Consumer2/Dockerfile
consumer3:
image: ${DOCKER_REGISTRY-}consumer3
restart: on-failure:10
build:
context: .
dockerfile: Consumer3/Dockerfile
consumer4:
image: ${DOCKER_REGISTRY-}consumer4
restart: on-failure:10
build:
context: .
dockerfile: Consumer4/Dockerfile
rabbitmq:
image: rabbitmq:management-alpine
restart: on-failure:10
hostname: "host.docker.internal"
container_name: "rabbitmq"
ports:
- '5672:5672'
- '15672:15672'
environment:
- RABBITMQ_DEFAULT_USER=guest
- RABBITMQ_DEFAULT_PASS=guest