-
Notifications
You must be signed in to change notification settings - Fork 17
/
base.yml
30 lines (30 loc) · 903 Bytes
/
base.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
base:
build: .
ports:
- "8000:8000"
container_name: api-gateway
environment:
NODE_PATH: app/src
PORT: 8000
mongo:
image: mongo
container_name: api-gateway-mongo
command: --smallfiles
ports:
- "27017"
volumes:
# in osx the host machine volume directory cannot be under /Users
# http://stackoverflow.hex1.ru/questions/34390220/how-to-mount-external-volume-for-mongodb-using-docker-compose-and-docker-machine
- /var/docker/data/mongodb:/data/db
restart: always
redis:
image: redis
container_name: api-gateway-redis
command: redis-server --appendonly yes
ports:
- "6379:6379"
volumes:
# in osx the host machine volume directory cannot be under /Users
# http://stackoverflow.hex1.ru/questions/34390220/how-to-mount-external-volume-for-mongodb-using-docker-compose-and-docker-machine
- /var/docker/data/redisdb:/data
restart: always