-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
55 lines (51 loc) · 1.01 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
53
54
55
version: "3"
services:
rabbit:
container_name: rabbitmq
image: "rabbitmq:3-management"
restart: always
environment:
RABBITMQ_DEFAULT_USER: "rabbitmq"
RABBITMQ_DEFAULT_PASS: "rabbitmq"
RABBITMQ_DEFAULT_VHOST: "/"
ports:
- "15672:15672"
- "5672:5672"
mongo:
image: mongo
container_name: mongo
restart: always
environment:
MONGO_INITDB_DATABASE: users
ports:
- 27017:27017
csv_update:
container_name: csv_update
restart: always
depends_on:
- rabbit
build:
context: ./csv_update
dockerfile: Dockerfile
environment:
RABBIT_HOST: 'rabbit'
ports:
- "8080:5000"
links:
- rabbit
csv_read:
container_name: csv_read
restart: always
depends_on:
- rabbit
- mongo
- csv_update
build:
context: ./csv_read
dockerfile: Dockerfile
environment:
RABBIT_HOST: 'rabbit'
MONGO_HOST: 'mongo'
links:
- rabbit
- mongo