-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
66 lines (62 loc) · 1.47 KB
/
docker-compose.yaml
File metadata and controls
66 lines (62 loc) · 1.47 KB
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
56
57
58
59
60
61
62
63
64
65
66
version: '3.8'
services:
mongodb:
image: mongo:latest
ports:
- 27017:27017
volumes:
- mongodb_data_container:/data/db
healthcheck:
test: echo 'db.runCommand("ping").ok' | mongo 10.10.10.60:27017/test --quiet
interval: 10s
timeout: 3s
retries: 3
auth-service:
container_name: auth_service
build:
context: ./
dockerfile: ./auth-service/Dockerfile
volumes:
- ./auth-service:/usr/src/app/auth-service
- /usr/src/app/auth-service/node_modules
ports:
- "3001:3001"
command: npm run start:dev
env_file:
- ./auth-service/.env
depends_on:
- mongodb
user-service:
container_name: user_service
build:
context: ./
dockerfile: ./user-service/Dockerfile
volumes:
- ./user-service:/usr/src/app/user-service
- /usr/src/app/user-service/node_modules
ports:
- "3000:3000"
command: npm run start:dev
env_file:
- ./user-service/.env
depends_on:
- mongodb
- auth-service
payment-service:
container_name: payment_service
build:
context: ./
dockerfile: ./payment-service/Dockerfile
volumes:
- ./payment-service:/usr/src/app/payment-service
- /usr/src/app/payment-service/node_modules
ports:
- "3002:3002"
command: npm run start:dev
env_file:
- ./payment-service/.env
depends_on:
- mongodb
- auth-service
volumes:
mongodb_data_container: