-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-develop.yml
35 lines (35 loc) · 1.08 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: .
ports:
- "4101:4101"
container_name: vocabulary-tag-develop
env_file:
- dev.env
environment:
PORT: 4101
NODE_ENV: test
NODE_PATH: app/src
GATEWAY_URL: http://mymachine:9000
MONGO_PORT_27017_TCP_ADDR: mongo
MICROSERVICE_TOKEN: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6Im1pY3Jvc2VydmljZSIsImNyZWF0ZWRBdCI6IjIwMTYtMDktMTQifQ.IRCIRm1nfIQTfda_Wb6Pg-341zhV8soAgzw7dd5HxxQ
FASTLY_ENABLED: "false"
AWS_REGION: "us-east-1"
AWS_ACCESS_KEY_ID: "test"
AWS_SECRET_ACCESS_KEY: "test"
command: develop
links:
- mongo
volumes:
- ./app:/opt/vocabulary-tag/app
mongo:
image: mongo:3.6
container_name: vocabulary-tag-mongo-develop
ports:
- "27017: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/vocabularytag:/data/db
restart: always