Files
GlitchupBot/docker-compose.yml
Verum 2a7dfa95c8
Some checks failed
CI / Run tests (push) Has been cancelled
CI / Docker build test (push) Has been cancelled
CI / Lint (ruff + mypy) (push) Has been cancelled
initial commit
2026-03-30 16:46:26 +07:00

29 lines
552 B
YAML

services:
bot:
build: .
restart: unless-stopped
env_file: .env
ports:
- "${API_PORT:-8080}:8080"
depends_on:
db:
condition: service_healthy
db:
image: postgres:17-alpine
restart: unless-stopped
environment:
POSTGRES_USER: glitchup
POSTGRES_PASSWORD: glitchup
POSTGRES_DB: glitchup
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U glitchup"]
interval: 5s
timeout: 3s
retries: 5
volumes:
pgdata: