-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
89 lines (81 loc) · 1.61 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
version: '3.8'
services:
fastapiproject:
build:
context: ./fastapiproject
dockerfile: ./Dockerfile
ports:
- "5000:5000"
depends_on:
- mongo2
fastapiproject2:
build:
context: ./fastapiproject2
dockerfile: ./Dockerfile
ports:
- "5001:5001"
depends_on:
- mongo
gateway:
build:
context: ./gateway
dockerfile: ./Dockerfile
ports:
- "5050:5050"
prj:
build:
context: ./prj
dockerfile: ./Dockerfile
ports:
- "5003:5003"
depends_on:
- mongo3
mongo:
image: mongo
restart: always
environment:
MONGO_INITDB_ROOT_USERNAME: users_actors
MONGO_INITDB_ROOT_PASSWORD: 12345
ports:
- "27017:27017"
volumes:
- mongo-data:/data/db
mongo2:
image: mongo
restart: always
environment:
MONGO_INITDB_ROOT_USERNAME: admin
MONGO_INITDB_ROOT_PASSWORD: 67890
ports:
- "27000:27017"
volumes:
- mongo-data2:/data/db
mongo3:
image: mongo
restart: always
environment:
MONGO_INITDB_ROOT_USERNAME: user
MONGO_INITDB_ROOT_PASSWORD: 12345
ports:
- "27001:27017"
volumes:
- mongo-data3:/data/db
volumes:
mongo-data:
driver: local
driver_opts:
type: none
device: /home/pylay/Desktop/azure/mongoDb
o: bind
mongo-data2:
driver: local
driver_opts:
type: none
device: /home/pylay/Desktop/azure/mongoDb2
o: bind
mongo-data3:
driver: local
driver_opts:
type: none
device: /home/pylay/Desktop/azure/mongoDb3
o: bind