-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
48 lines (43 loc) · 895 Bytes
/
docker-compose.yml
File metadata and controls
48 lines (43 loc) · 895 Bytes
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
version: '3'
services:
querydb:
image: querydb
build: ./cqrs_app/query_db/
ports:
- "27017:27017"
restart: always
commanddb:
image: commanddb
build: ./cqrs_app/command_db/
ports:
- "5432:5432"
healthcheck:
test: exit 0
restart: always
queue:
image: rabbitmq
build: ./queue
ports:
- "15673:15672"
- "5673:5672"
restart: always
users_service:
image: users_service
build: ./cqrs_app
volumes:
- './cqrs_app:/app'
environment:
- QUEUE_HOST=amqp://guest:guest@queue
- QUERYBD_HOST=mongodb://querydb:27017/
- COMMANDDB_HOST=postgresql://postgres:postgres@commanddb:5432/users?sslmode=disable
ports:
- "80:5000"
depends_on:
- querydb
- commanddb
- queue
links:
- querydb
- commanddb
- queue
restart: always