2019-04-19 20:48:37 +02:00
|
|
|
version: "3"
|
2020-08-25 20:37:31 +02:00
|
|
|
|
2018-07-12 00:47:44 +02:00
|
|
|
services:
|
|
|
|
|
bot:
|
2025-04-13 22:05:14 +00:00
|
|
|
build: .
|
2020-08-25 20:37:31 +02:00
|
|
|
command: ["bin/PluralKit.Bot.dll"]
|
2019-03-07 16:29:46 +01:00
|
|
|
environment:
|
2025-04-13 22:05:14 +00:00
|
|
|
- "PluralKit__Database=Host=db;Username=postgres;Password=postgres;Database=postgres"
|
|
|
|
|
- "PluralKit__RedisAddr=redis"
|
|
|
|
|
- "PluralKit__Bot__Token=${BOT_TOKEN}"
|
|
|
|
|
- "PluralKit__Bot__ClientId=${CLIENT_ID}"
|
|
|
|
|
- "PluralKit__Bot__AdminRole=${ADMIN_ROLE}"
|
2025-05-03 12:21:57 -04:00
|
|
|
- "PluralKit__Bot__HttpCacheUrl=gateway:5000"
|
2025-04-13 22:05:14 +00:00
|
|
|
- "PluralKit__Bot__HttpListenerAddr=0.0.0.0"
|
|
|
|
|
- "PluralKit__Bot__EventAwaiterTarget=http://bot:5002/events"
|
|
|
|
|
- "PluralKit__Bot__DisableGateway=true"
|
2020-08-25 20:37:31 +02:00
|
|
|
restart: unless-stopped
|
|
|
|
|
|
2025-04-13 22:05:14 +00:00
|
|
|
gateway:
|
|
|
|
|
build:
|
|
|
|
|
context: .
|
|
|
|
|
dockerfile: ci/Dockerfile.rust
|
|
|
|
|
command: ["/gateway"]
|
2021-11-01 01:46:07 -04:00
|
|
|
environment:
|
2025-04-13 22:05:14 +00:00
|
|
|
- RUST_LOG=info
|
|
|
|
|
- pluralkit__discord__client_id=${CLIENT_ID}
|
|
|
|
|
- pluralkit__discord__bot_token=${BOT_TOKEN}
|
|
|
|
|
- pluralkit__discord__max_concurrency=1
|
|
|
|
|
- pluralkit__discord__gateway_target=http://bot:5002/events
|
|
|
|
|
- pluralkit__db__data_db_uri=postgresql://postgres:postgres@db:5432/postgres
|
|
|
|
|
- pluralkit__db__data_redis_addr=redis://redis:6379
|
|
|
|
|
- pluralkit__api__temp_token2=1
|
|
|
|
|
- pluralkit__api__remote_url=1
|
|
|
|
|
- pluralkit__api__ratelimit_redis_addr=1
|
|
|
|
|
- pluralkit__discord__client_secret=1
|
2025-05-03 12:21:57 -04:00
|
|
|
- pluralkit__runtime_config_key=gateway
|
2025-04-13 22:05:14 +00:00
|
|
|
depends_on:
|
|
|
|
|
- redis
|
2021-11-01 01:46:07 -04:00
|
|
|
restart: unless-stopped
|
|
|
|
|
|
2018-07-12 00:47:44 +02:00
|
|
|
db:
|
2025-04-13 22:05:14 +00:00
|
|
|
image: postgres:17-alpine
|
2019-07-15 16:51:43 +02:00
|
|
|
volumes:
|
|
|
|
|
- "db_data:/var/lib/postgresql/data"
|
2020-03-05 16:51:35 +01:00
|
|
|
environment:
|
|
|
|
|
- "POSTGRES_PASSWORD=postgres"
|
2020-08-25 20:37:31 +02:00
|
|
|
restart: unless-stopped
|
|
|
|
|
|
2022-01-13 12:26:25 -05:00
|
|
|
redis:
|
|
|
|
|
image: redis:alpine
|
|
|
|
|
restart: unless-stopped
|
|
|
|
|
|
2019-07-15 16:51:43 +02:00
|
|
|
volumes:
|
2019-07-16 23:34:22 +02:00
|
|
|
db_data:
|