-
Notifications
You must be signed in to change notification settings - Fork 1
/
compose.yml.example
68 lines (64 loc) · 1.51 KB
/
compose.yml.example
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# Copy this file to `docker-compose.yml` and modify it to your liking.
# Copy `.env.example` to `.env` to configure environment variables.
services:
bot:
build:
context: .
dockerfile: ./bot/Dockerfile
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
- BOT_METRICS_PORT
- BOT_METRICS_MSG_PING_CHANNEL
- BOT_STATUS
- BOT_STATUS_INTERVAL
- REVOLT_API_URL
# Uncomment if you enabled Prometheus metrics
#ports:
# - 127.0.0.1:${BOT_METRICS_PORT}:${BOT_METRICS_PORT}
depends_on:
- mongo
- api
restart: unless-stopped
api:
build:
context: .
dockerfile: ./api/Dockerfile
environment:
- BOT_API_TOKEN=${INTERNAL_API_TOKEN}
- DB_HOST=mongo:27017
- DB_USERNAME=mogus
- DB_PASS
- DB_NAME=admin
- REDIS_URL=redis://redis:6379
expose:
- 9000
ports:
- "9000:9000"
depends_on:
- mongo
- redis
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
redis:
image: eqalpha/keydb
restart: always