28 lines
596 B
YAML
28 lines
596 B
YAML
services:
|
|
postgres:
|
|
image: postgres:16-alpine
|
|
environment:
|
|
POSTGRES_DB: relay
|
|
POSTGRES_USER: relay
|
|
POSTGRES_PASSWORD: relay
|
|
volumes:
|
|
- postgres_data:/var/lib/postgresql/data
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U relay -d relay"]
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 10
|
|
restart: unless-stopped
|
|
bot:
|
|
build: .
|
|
env_file: .env
|
|
depends_on:
|
|
postgres:
|
|
condition: service_healthy
|
|
volumes:
|
|
- repository_data:/app/data
|
|
restart: unless-stopped
|
|
volumes:
|
|
postgres_data:
|
|
repository_data:
|