2022-02-05 20:17:00 +01:00
|
|
|
# Copy this file to `docker-compose.yml` and modify it to your liking.
|
|
|
|
# Copy `.env.example` to `.env` to configure environment variables.
|
|
|
|
|
|
|
|
services:
|
|
|
|
bot:
|
2022-07-12 18:07:17 +02:00
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: ./bot/Dockerfile
|
2022-02-05 20:17:00 +01:00
|
|
|
environment:
|
|
|
|
- DB_HOST=mongo:27017
|
|
|
|
- DB_USERNAME=mogus
|
|
|
|
- DB_PASS
|
|
|
|
- DB_NAME=admin
|
|
|
|
- BOT_TOKEN
|
|
|
|
- BOT_OWNERS
|
|
|
|
- LOG_WEBHOOK
|
|
|
|
- NODE_ENV=production
|
|
|
|
- API_WS_URL=ws://api:9000/internal/ws
|
|
|
|
- API_WS_TOKEN=${INTERNAL_API_TOKEN}
|
|
|
|
- WEB_UI_URL=${PUBLIC_WEB_URL}
|
|
|
|
- BOT_PREFIX
|
2022-02-12 15:25:24 +01:00
|
|
|
- BOT_METRICS_PORT
|
|
|
|
- BOT_METRICS_MSG_PING_CHANNEL
|
2022-04-09 17:13:31 +02:00
|
|
|
- BOT_STATUS
|
|
|
|
- BOT_STATUS_INTERVAL
|
2024-08-15 09:22:06 +02:00
|
|
|
- REVOLT_API_URL
|
2022-02-12 15:25:24 +01:00
|
|
|
# Uncomment if you enabled Prometheus metrics
|
|
|
|
#ports:
|
|
|
|
# - 127.0.0.1:${BOT_METRICS_PORT}:${BOT_METRICS_PORT}
|
2022-02-05 20:17:00 +01:00
|
|
|
depends_on:
|
|
|
|
- mongo
|
|
|
|
- api
|
|
|
|
restart: unless-stopped
|
|
|
|
|
|
|
|
api:
|
2022-07-12 18:07:17 +02:00
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: ./api/Dockerfile
|
2022-02-05 20:17:00 +01:00
|
|
|
environment:
|
|
|
|
- BOT_API_TOKEN=${INTERNAL_API_TOKEN}
|
|
|
|
- DB_HOST=mongo:27017
|
|
|
|
- DB_USERNAME=mogus
|
|
|
|
- DB_PASS
|
|
|
|
- DB_NAME=admin
|
2024-08-07 06:51:11 +02:00
|
|
|
- REDIS_URL=redis://redis:6379
|
2022-02-05 20:17:00 +01:00
|
|
|
expose:
|
|
|
|
- 9000
|
|
|
|
ports:
|
2024-08-07 06:51:11 +02:00
|
|
|
- "9000:9000"
|
|
|
|
depends_on:
|
|
|
|
- mongo
|
|
|
|
- redis
|
2022-02-05 20:17:00 +01:00
|
|
|
restart: unless-stopped
|
|
|
|
|
|
|
|
mongo:
|
|
|
|
image: mongo
|
|
|
|
environment:
|
|
|
|
- MONGO_INITDB_ROOT_USERNAME=mogus
|
|
|
|
- MONGO_INITDB_ROOT_PASSWORD=${DB_PASS}
|
|
|
|
expose:
|
|
|
|
- 27017
|
|
|
|
volumes:
|
|
|
|
- ./db:/data/db:rw
|
|
|
|
restart: unless-stopped
|
2022-07-15 17:38:13 +02:00
|
|
|
|
|
|
|
redis:
|
|
|
|
image: eqalpha/keydb
|
|
|
|
restart: always
|