-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
41 lines (38 loc) · 1.3 KB
/
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
version: "3"
services:
mongodb:
image: mongo:latest
volumes:
- mongo-data:/data/db
bot:
image: node:latest
command: /bin/bash -c "./node_modules/.bin/nodemon --delay 2 --watch dist --debug=0.0.0.0:5858 ./dist/server.js | ./node_modules/.bin/bunyan --color"
working_dir: /app
depends_on:
- mongodb
ports:
- 5858:5858
volumes:
- .:/app
environment:
- NODE_ENV=development
- LOG_LEVEL=trace
- MONGO_URL=mongodb://mongodb:27017/baleinebot
- DISCORD_TOKEN=${DISCORD_TOKEN}
- DISCORD_CHAN_ID=${DISCORD_CHAN_ID}
- DISCORD_CMD_CHAN_ID=${DISCORD_CMD_CHAN_ID}
- NEWBIE_ROLE=${NEWBIE_ROLE}
# bot-test:
# image: node:latest
# command: /bin/bash -c "set -o pipefail && ./node_modules/.bin/nyc --reporter=html ./node_modules/.bin/mocha --colors --no-timeouts ./dist/tests/tests.js | ./node_modules/.bin/bunyan --color"
# working_dir: /app
# depends_on:
# - mongodb
# volumes:
# - .:/app
# environment:
# - NODE_ENV=test
# - LOG_LEVEL=debug
# - MONGO_URL=mongodb://mongodb:27017/baleinebot
volumes:
mongo-data: