-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
36 lines (33 loc) · 945 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
version: '2.1'
services:
docker-ts-debug:
container_name: docker-ts-debug
restart: always
env_file:
- .env
environment: # Another way to define env vars
# NODE_ENV: docker
#connect to dockerize mongo
MONGODB_HOST_AND_PORT_LIST: mongodb:27017
# connect to local mongo on Mac
# MONGODB_HOST_AND_PORT_LIST: docker.for.mac.localhost:27017
build: # if build arg not present, it will try to pull from registry
context: .
# args:
# - GIT_COMMIT: "git log -1 --pretty=format:%H"
image: docker-ts-debug:dev
entrypoint: ["npm", "run", "debug"]
volumes:
- ./dist:/server/dist
ports:
- ${DOCKER_TS_DEBUG_NODE_PORT}:${DOCKER_TS_DEBUG_NODE_PORT}
- ${DEBUG_PORT}:${DEBUG_PORT}
depends_on:
- mongodb
mongodb:
image: mongo:3.6
container_name: mongo
volumes:
- .mongo/data:/data
ports:
- 27018:27017