PluralKit/docker-compose.yml

34 lines
638 B
YAML

version: '3'
services:
bot:
build: src/
entrypoint:
- python
- bot_main.py
volumes:
- "./pluralkit.conf:/app/pluralkit.conf:ro"
environment:
- "DATABASE_URI=postgres://postgres:postgres@db:5432/postgres"
depends_on:
- db
restart: always
api:
build: src/
entrypoint:
- python
- api_main.py
depends_on:
- db
restart: always
ports:
- "2939:8080"
environment:
- "DATABASE_URI=postgres://postgres:postgres@db:5432/postgres"
db:
image: postgres:alpine
volumes:
- "db_data:/var/lib/postgresql/data"
restart: always
volumes:
db_data: