29 lines
552 B
YAML
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:
|