2020-08-25 20:37:31 +02:00
|
|
|
# API port: 2838, InfluxDB port: 2839, both listen on localhost only
|
|
|
|
# Reads `pluralkit.conf` from current directory, and logs to `/var/log/pluralkit`.
|
|
|
|
|
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:
|
2019-08-12 06:49:18 +02:00
|
|
|
image: pluralkit # This image is reused in the other containers due to the
|
|
|
|
build: . # build instruction right here
|
2020-08-25 20:37:31 +02:00
|
|
|
command: ["bin/PluralKit.Bot.dll"]
|
2019-03-07 16:29:46 +01:00
|
|
|
environment:
|
2019-08-12 02:34:59 +02:00
|
|
|
- "PluralKit:Database=Host=db;Username=postgres;Password=postgres;Database=postgres;Maximum Pool Size=1000"
|
2019-07-16 23:34:22 +02:00
|
|
|
- "PluralKit:InfluxUrl=http://influx:8086"
|
2019-07-16 23:47:00 +02:00
|
|
|
- "PluralKit:InfluxDb=pluralkit"
|
2019-07-18 17:13:42 +02:00
|
|
|
- "PluralKit:LogDir=/var/log/pluralkit"
|
2019-07-01 01:04:35 +02:00
|
|
|
volumes:
|
|
|
|
- "./pluralkit.conf:/app/pluralkit.conf:ro"
|
2019-07-18 17:13:42 +02:00
|
|
|
- "/var/log/pluralkit:/var/log/pluralkit"
|
2020-08-25 20:37:31 +02:00
|
|
|
restart: unless-stopped
|
|
|
|
|
2019-07-10 12:37:47 +02:00
|
|
|
api:
|
2019-08-12 06:49:18 +02:00
|
|
|
image: pluralkit
|
2020-08-25 20:37:31 +02:00
|
|
|
command: ["bin/PluralKit.API.dll"]
|
2019-07-10 12:37:47 +02:00
|
|
|
environment:
|
2019-08-12 02:34:59 +02:00
|
|
|
- "PluralKit:Database=Host=db;Username=postgres;Password=postgres;Database=postgres;Maximum Pool Size=1000"
|
2019-07-10 12:37:47 +02:00
|
|
|
ports:
|
2019-12-22 00:42:06 +01:00
|
|
|
- "127.0.0.1:2838:5000"
|
2020-08-25 20:37:31 +02:00
|
|
|
restart: unless-stopped
|
|
|
|
|
2018-07-12 00:47:44 +02:00
|
|
|
db:
|
2020-08-25 20:37:31 +02:00
|
|
|
image: postgres:12-alpine
|
2019-07-15 16:51:43 +02:00
|
|
|
volumes:
|
|
|
|
- "db_data:/var/lib/postgresql/data"
|
2020-08-25 20:37:31 +02:00
|
|
|
- "/var/run/postgresql:/var/run/postgresql"
|
|
|
|
command: ["postgres",
|
|
|
|
"-c", "max-connections=1000",
|
2020-08-25 22:33:23 +02:00
|
|
|
"-c", "timezone=Etc/UTC",
|
2020-08-25 20:37:31 +02:00
|
|
|
"-c", "max_wal_size=1GB",
|
|
|
|
"-c", "min_wal_size=80MB",
|
|
|
|
"-c", "shared_buffers=128MB"]
|
2020-03-05 16:51:35 +01:00
|
|
|
environment:
|
|
|
|
- "POSTGRES_PASSWORD=postgres"
|
2020-08-25 20:37:31 +02:00
|
|
|
restart: unless-stopped
|
|
|
|
|
2019-07-16 23:34:22 +02:00
|
|
|
influx:
|
2020-08-25 21:21:09 +02:00
|
|
|
image: influxdb:1.8
|
2019-07-16 23:34:22 +02:00
|
|
|
volumes:
|
|
|
|
- "influx_data:/var/lib/influxdb"
|
|
|
|
ports:
|
2020-08-25 20:37:31 +02:00
|
|
|
- 127.0.0.1:2839:8086
|
|
|
|
restart: unless-stopped
|
2020-03-05 16:51:35 +01:00
|
|
|
|
2019-07-15 16:51:43 +02:00
|
|
|
volumes:
|
2019-07-16 23:34:22 +02:00
|
|
|
db_data:
|
2019-08-03 00:27:25 +02:00
|
|
|
influx_data:
|