forked from Skydipper/Metadata
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-develop.yml
35 lines (34 loc) · 1.04 KB
/
docker-compose-develop.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
version: "3"
services:
develop:
build: .
container_name: rw-metadata-develop
ports:
- "4000:4000"
env_file:
- dev.env
environment:
PORT: 4000
NODE_PATH: app/src
MICROSERVICE_TOKEN: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6Im1pY3Jvc2VydmljZSIsImNyZWF0ZWRBdCI6IjIwMTYtMDktMTQifQ.IRCIRm1nfIQTfda_Wb6Pg-341zhV8soAgzw7dd5HxxQ
MONGO_PORT_27017_TCP_ADDR: mongo
FASTLY_ENABLED: "false"
AWS_REGION: "us-east-1"
AWS_ACCESS_KEY_ID: "test"
AWS_SECRET_ACCESS_KEY: "test"
command: develop
depends_on:
- mongo
volumes:
- ./app:/opt/rw-metadata/app
mongo:
image: mongo:3.4
container_name: rw-metadata-mongo-develop
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
- $HOME/docker/data/rw-metadata:/data/db
restart: always