PluralKit/docker-compose.yml

37 lines
699 B
YAML
Raw Normal View History

2018-07-11 22:47:44 +00:00
version: '3'
services:
bot:
2018-08-01 22:36:50 +00:00
build: src/
entrypoint:
- python
- bot_main.py
2019-03-07 15:29:46 +00:00
volumes:
- "./pluralkit.conf:/app/pluralkit.conf:ro"
environment:
- "DATABASE_URI=postgres://postgres:postgres@db:5432/postgres"
2018-07-11 22:47:44 +00:00
depends_on:
- db
restart: always
2018-08-01 22:36:50 +00:00
api:
build: src/
entrypoint:
- python
- api_main.py
depends_on:
- db
restart: always
ports:
- "2939:8080"
2018-09-09 20:41:21 +00:00
environment:
2019-03-07 15:29:46 +00:00
- "DATABASE_URI=postgres://postgres:postgres@db:5432/postgres"
2019-03-11 20:53:08 +00:00
- "CLIENT_ID"
- "CLIENT_SECRET"
- "REDIRECT_URI"
2018-07-11 22:47:44 +00:00
db:
image: postgres:alpine
volumes:
2018-07-14 19:07:25 +00:00
- "db_data:/var/lib/postgresql/data"
2018-07-11 22:47:44 +00:00
restart: always
2018-07-16 18:53:41 +00:00
2018-07-11 22:47:44 +00:00
volumes:
db_data: