# Pinned so the volume prefix stays `ftstore_` no matter what the checkout # directory is called. Without it Compose would name the project after the # folder — `web` in this monorepo — and a `docker compose up` from a fresh # clone would silently start against empty volumes. name: ftstore services: db: image: postgres:16-alpine restart: unless-stopped environment: POSTGRES_USER: ftstore POSTGRES_PASSWORD: ftstore POSTGRES_DB: ftstore volumes: - pgdata:/var/lib/postgresql/data healthcheck: test: ["CMD-SHELL", "pg_isready -U ftstore"] interval: 5s timeout: 5s retries: 5 app: image: ghcr.io/ftstuff/ftstore-admin-app:latest restart: unless-stopped stop_grace_period: 30s ports: - "3000:3000" environment: DATABASE_URL: postgresql://ftstore:ftstore@db:5432/ftstore?schema=public volumes: - tdlib-data:/app/tdlib-data # IPA files and tweak icons. Must be the SAME volume as the worker's: # the worker writes what the scraper downloads, the app serves it and # writes what the dashboard uploads. - ipa-storage:/app/storage # Dashboard IPA uploads are staged here before ingest — keep multi-hundred-MB # files off the container's writable layer. - upload-staging:/tmp/ftstore depends_on: db: condition: service_healthy worker: image: ghcr.io/ftstuff/ftstore-admin-worker:latest restart: unless-stopped stop_grace_period: 30s environment: DATABASE_URL: postgresql://ftstore:ftstore@db:5432/ftstore?schema=public volumes: - tdlib-data:/app/tdlib-data - ipa-storage:/app/storage - temp-downloads:/tmp/ftstore depends_on: db: condition: service_healthy volumes: pgdata: tdlib-data: ipa-storage: # Per-container scratch, deliberately not shared: the app's upload sweeper # would otherwise race the worker's in-flight downloads. temp-downloads: upload-staging: