eu.astrogd.white-leopard/docker-compose.yml
Lukas | AstroGD d5b75b12c8
Fix db race condition
- Fixed a bug where the bot would crash if the db connection took too long
- Updated packages to latest version
- Bumped version to 1.1.1
2023-09-16 11:12:43 +02:00

29 lines
599 B
YAML

version: "3.9"
services:
app:
image: astrogd/white-leopard:dev
build: ./
ports:
- 80:80
tty: true
stdin_open: true
depends_on:
- db
restart: unless-stopped
environment:
- TOKEN=$TOKEN
- DB_HOST=database
- DB_USERNAME=$DB_USERNAME
- DB_PASSWORD=$DB_PASSWORD
- DB_DATABASE=$DB_DATABASE
db:
image: postgres:latest
restart: unless-stopped
ports:
- 5432:5432
environment:
- POSTGRES_USER=$DB_USERNAME
- POSTGRES_PASSWORD=$DB_PASSWORD
- POSTGRES_DB=$DB_DATABASE
expose:
- 5432