-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
24 lines (23 loc) · 1.01 KB
/
docker-compose.yaml
File metadata and controls
24 lines (23 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
services:
bot_dev:
image: node:20
working_dir: /bot/
volumes:
- ./:/bot
# Runtime libs (cairo/pango/jpeg/gif/rsvg + fonts) are required by the
# native `canvas` module that backs chartjs-node-canvas. They're cheap to
# install on top of node:20 (debian-based) and apt-get is idempotent on
# subsequent container starts.
#command: sh -c "apt-get update && apt-get install -y --no-install-recommends libcairo2 libpango-1.0-0 libjpeg62-turbo libgif7 librsvg2-2 fonts-liberation && npm install && npm run build && exec node dist/index.js"
command: sh -c "apt-get update && apt-get install -y --no-install-recommends libcairo2 libpango-1.0-0 libjpeg62-turbo libgif7 librsvg2-2 fonts-liberation && npm install && sleep infinity" # && exec npm run dev
depends_on:
- mongodb
environment:
- MONGODB_URI=mongodb://mongodb:27017/queue-bot
- RESULTS_WEBHOOK_URL=""
mongodb:
image: mongo
ports:
- "127.0.0.1:27017:27017"
volumes:
- ./data/db:/data/db