-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
71 lines (70 loc) · 1.65 KB
/
docker-compose.yaml
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
version: "3.8"
services:
# mongodb2:
# image: mongo:2.6.11
# container_name: mongodb2
# environment:
# - PUID=1000
# - PGID=1000
# volumes:
# - /home/jack/databases/2:/data/db
# ports:
# - 127.0.0.1:27012:27017
# restart: unless-stopped
# mongodb3:
# image: mongo:3.6.23
# container_name: mongodb3
# environment:
# - PUID=1000
# - PGID=1000
# volumes:
# - /home/jack/databases/3:/data/db
# ports:
# - 127.0.0.1:27013:27017
# restart: unless-stopped
# mongodb4:
# image: mongo:4.2.17
# container_name: mongodb4
# environment:
# - PUID=1000
# - PGID=1000
# volumes:
# - /home/jack/databases/4:/data/db
# ports:
# - 127.0.0.1:27014:27017
# restart: unless-stopped
# mongodb5:
# image: mongo:5.0.11
# container_name: mongodb5
# environment:
# - PUID=1000
# - PGID=1000
# volumes:
# - /home/jack/databases/5:/data/db
# ports:
# - 127.0.0.1:27015:27017
# restart: unless-stopped
mongodb:
image: mongo:6.0.2
container_name: mongodb
environment:
- PUID=1000
- PGID=1000
volumes:
- /home/jack/databases/6:/data/db
ports:
- 127.0.0.1:27017:27017
restart: unless-stopped
# mongodb7:
# image: mongo:7
# container_name: mongodb7
# environment:
# - PUID=1000
# - PGID=1000
# volumes:
# - /home/jack/databases/7:/data/db
# ports:
# - 127.0.0.1:27011:27017
# restart: unless-stopped
## For mongo-wrangler in above shells
# apt update && apt install -y curl zstd && ln -s /usr/bin/mongosh /usr/bin/mongo