-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
49 lines (49 loc) · 992 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
services:
db:
image: mongo
volumes:
- dbdata:/data/db
logging:
driver: none
ngrok:
container_name: master-server-ngrok-1
image: wernight/ngrok
environment:
- NGROK_AUTH=${NGROK_AUTH_TOKEN}
ports:
- "8081:8081"
- "4040:4040"
command:
- /bin/sh
- -c
- |
ngrok start --all
volumes:
- .:/home/ngrok/.ngrok2/
depends_on:
- server
server:
build:
context: .
dockerfile: Dockerfile
command: /bin/sh ./start_prod.sh
environment:
- IS_DOCKER_COMPOSE=true
- NODE_ENV=production
# - DOCKER_HOST_IP=${DOCKER_HOST_IP}
- DOCKER_HOST_IP
ports:
- "8000-8080:8000-8080"
- "8082-9000:8082-9000"
- "12345:12345/udp"
depends_on:
- db
volumes:
- /var/run/docker.sock:/var/run/docker.sock
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
volumes:
dbdata: {}