forked from DeviaVir/zenbot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
42 lines (41 loc) · 977 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
version: '3.1'
services:
server:
build:
context: .
dockerfile: Dockerfile
volumes:
- ./:/app/
- /app/node_modules/
- /app/dist/
# Avoid syncing database to our server
- /app/database/
restart: always
tty: true
ports:
- "17365:17365"
depends_on:
- mongodb
environment:
- MONGODB_PORT_27017_TCP_ADDR=mongodb
mongodb:
image: mongo:latest
volumes:
- ./database:/data/db
command: mongod --smallfiles --bind_ip=0.0.0.0 --logpath=/dev/null
expose:
- 27017
# Remove below comments to use this container. "adminMongo is a Web based user interface (GUI) to handle all your MongoDB connections/databases needs."
#
#adminmongo:
# image: mrvautin/adminmongo
# links:
# - mongodb
# tty: true
# ports:
# - "1234:1234"
# environment:
# - CONN_NAME=zenbot_mongodb
# - DB_HOST=mongodb
# - DB_PORT=27017
# command: "npm start"