mirror of
https://github.com/xCyanGrizzly/DragonsStash.git
synced 2026-05-10 22:01:16 +00:00
42 lines
954 B
YAML
42 lines
954 B
YAML
services:
|
|
db:
|
|
image: postgres:16-alpine
|
|
ports:
|
|
- "5432:5432"
|
|
environment:
|
|
POSTGRES_USER: dragons
|
|
POSTGRES_PASSWORD: stash
|
|
POSTGRES_DB: dragonsstash
|
|
volumes:
|
|
- postgres_dev_data:/var/lib/postgresql/data
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U dragons -d dragonsstash"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
worker:
|
|
build:
|
|
context: .
|
|
dockerfile: worker/Dockerfile
|
|
env_file:
|
|
- .env.local
|
|
environment:
|
|
- DATABASE_URL=postgresql://dragons:stash@db:5432/dragonsstash
|
|
- WORKER_INTERVAL_MINUTES=5
|
|
- WORKER_TEMP_DIR=/tmp/zips
|
|
- TDLIB_STATE_DIR=/data/tdlib
|
|
- WORKER_MAX_ZIP_SIZE_MB=4096
|
|
- LOG_LEVEL=debug
|
|
volumes:
|
|
- tdlib_dev_state:/data/tdlib
|
|
- tmp_dev_zips:/tmp/zips
|
|
depends_on:
|
|
db:
|
|
condition: service_healthy
|
|
|
|
volumes:
|
|
postgres_dev_data:
|
|
tdlib_dev_state:
|
|
tmp_dev_zips:
|