-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
48 lines (44 loc) · 961 Bytes
/
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
version: '3'
services:
redis:
image: redis:4.0.9-alpine
# command: redis-server --appendonly yes --requirepass cnode
volumes:
- egg-redis:/data
networks:
- cnode
ports:
- 6379:6379
mongo:
image: mongo:4.0.3
restart: always
environment:
- MONGO_INITDB_ROOT_USERNAME=root
- MONGO_INITDB_ROOT_PASSWORD=root
- MONGO_INITDB_DATABASE=cnode
volumes:
- egg-mongo:/data/db
- ./init.d/mongo/:/docker-entrypoint-initdb.d/
networks:
- cnode
ports:
- 27017:27017
mongo-express:
image: mongo-express
restart: always
environment:
ME_CONFIG_MONGODB_ADMINUSERNAME: root
ME_CONFIG_MONGODB_ADMINPASSWORD: root
ME_CONFIG_MONGODB_URL: mongodb://root:root@mongo:27017/
networks:
- cnode
depends_on:
- mongo
ports:
- 8081:8081
volumes:
egg-mongo:
egg-redis:
networks:
cnode:
driver: bridge