PluralKit/docker-compose.yml

53 lines
970 B
YAML

version: '3'
services:
bot:
build: src/
entrypoint:
- python
- bot_main.py
depends_on:
- db
- influx
environment:
- CLIENT_ID
- TOKEN
- "DATABASE_USER=postgres"
- "DATABASE_PASS=postgres"
- "DATABASE_NAME=postgres"
- "DATABASE_HOST=db"
- "DATABASE_PORT=5432"
restart: always
api:
build: src/
entrypoint:
- python
- api_main.py
depends_on:
- db
restart: always
ports:
- "2939:8080"
db:
image: postgres:alpine
volumes:
- "db_data:/var/lib/postgresql/data"
restart: always
influx:
image: influxdb:alpine
volumes:
- "influx_data:/var/lib/influxdb:Z"
restart: always
grafana:
build: grafana
depends_on:
- influx
ports:
- "2938:3000"
environment:
GF_SECURITY_ADMIN_USER: "${GRAFANA_USERNAME}"
GF_SECURITY_ADMIN_PASSWORD: "${GRAFANA_PASSWORD}"
restart: always
volumes:
db_data:
influx_data: