-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
48 lines (45 loc) · 1010 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
version: '3'
services:
mongo:
hostname: mongo
image: 'mvertes/alpine-mongo:latest'
volumes:
- ./mongodb:/data/db
ports:
- '27017:27017'
restart: always
networks:
momenton_net:
ipv4_address: 172.23.240.17
momentonserver:
hostname: momentonserver
image: 'golra03/momentonserver:latest'
ports:
- '3011:3011'
volumes:
- './logs:/momenton/momentonserver/logs/momenton-server'
depends_on:
- mongo
entrypoint:
- /bin/sh
- '-c'
- >-
set -u
set -e
mkdir -p ./logs/momenton-server
DATE=`date '+%Y-%m-%d_%H-%M-%S'`
cd /momenton/momentonserver
npm run start:production
environment:
- PORT=3011
- NODE_ENV=production
- MONGO_HOST=172.23.240.17
- MONGO_PORT=27017
- MONGO_DB=momentonserver
restart: always
networks:
momenton_net:
ipv4_address: 172.23.240.12
networks:
momenton_net:
external: true