-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
47 lines (43 loc) · 1.04 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
version: '3'
services:
mongo-db:
image: mongo:latest
ports:
- "27017:27017"
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: example
volumes:
- mongo-db-data:/data/db
content-service:
build:
context: ./content-service
dockerfile: Dockerfile
ports:
- "3001:3000"
depends_on:
- mongo-db
environment:
DATABASE_URL: mongodb://root:example@mongo-db:27017/contentServiceDB?authSource=admin
interaction-service:
build:
context: ./interaction-service
dockerfile: Dockerfile
ports:
- "3002:3000"
depends_on:
- mongo-db
environment:
DATABASE_URL: mongodb://root:example@mongo-db:27017/interactionServiceDB?authSource=admin
user-service:
build:
context: ./user-service
dockerfile: Dockerfile
ports:
- "3003:3000"
depends_on:
- mongo-db
environment:
DATABASE_URL: mongodb://root:example@mongo-db:27017/userServiceDB?authSource=admin
volumes:
mongo-db-data: