-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
90 lines (83 loc) · 2.32 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
90
version: "3.8"
services:
zero:
image: dgraph/dgraph:latest
volumes:
- dgraph_data:/dgraph
networks:
- no-fun-neal
ports:
- 5080:5080
- 6080:6080
restart: on-failure
command: dgraph zero --my=zero:5080
alpha:
image: dgraph/dgraph:latest
volumes:
- dgraph_data:/dgraph
networks:
- no-fun-neal
ports:
- 8080:8080
- 9080:9080
restart: on-failure
command: dgraph alpha --my=alpha:7080 --zero=zero:5080 --security whitelist=0.0.0.0/0 --telemetry "sentry=false;"
ratel:
image: dgraph/ratel:latest
networks:
- no-fun-neal
ports:
- 8000:8000
mongo:
image: mongo:latest
restart: always
ports:
- "27017:27017"
environment:
MONGO_INITDB_ROOT_USERNAME_FILE: /run/secrets/mongodb_root_username
MONGO_INITDB_ROOT_PASSWORD_FILE: /run/secrets/mongodb_root_password
volumes:
- mongodb_data:/data/db
secrets:
- mongodb_root_username
- mongodb_root_password
networks:
- no-fun-neal
mongo-express:
image: mongo-express
restart: always
ports:
- "8081:8081"
environment:
ME_CONFIG_MONGODB_ADMINUSERNAME_FILE: /run/secrets/mongo_express_admin_username
ME_CONFIG_MONGODB_ADMINPASSWORD_FILE: /run/secrets/mongo_express_admin_password
ME_CONFIG_MONGODB_SERVER: mongo
ME_CONFIG_BASICAUTH_USERNAME_FILE: /run/secrets/mongo_express_basic_auth_username
ME_CONFIG_BASICAUTH_PASSWORD_FILE: /run/secrets/mongo_express_basic_auth_password
depends_on:
- mongo
secrets:
- mongo_express_admin_username
- mongo_express_admin_password
- mongo_express_basic_auth_username
- mongo_express_basic_auth_password
networks:
- no-fun-neal
networks:
no-fun-neal:
volumes:
dgraph_data:
mongodb_data:
secrets:
mongodb_root_username:
file: ./secrets/mongodb_root_username.txt
mongodb_root_password:
file: ./secrets/mongodb_root_password.txt
mongo_express_admin_username:
file: ./secrets/mongo_express_admin_username.txt
mongo_express_admin_password:
file: ./secrets/mongo_express_admin_password.txt
mongo_express_basic_auth_username:
file: ./secrets/mongo_express_basic_auth_username.txt
mongo_express_basic_auth_password:
file: ./secrets/mongo_express_basic_auth_password.txt