-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
36 lines (33 loc) · 865 Bytes
/
docker-compose.dev.yml
File metadata and controls
36 lines (33 loc) · 865 Bytes
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
version: "3"
services:
redis:
container_name: redis
image: redis:4.0.11-alpine
command: redis-server --appendonly yes --requirepass node-server
volumes:
- egg-redis:/data
networks:
- docker-node-server
ports:
- 6378:6379
mongodb:
container_name: mongodb
image: mongo:3.6.7
restart: always
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: mongodb
MONGO_INITDB_DATABASE: node-server
volumes:
- egg-mongo:/data/db
- ./init.d/mongo/:/docker-entrypoint-initdb.d
networks:
- docker-node-server
ports:
- 27016:27017
volumes:
egg-mongo:
egg-redis:
networks:
docker-node-server:
driver: bridge