version: "3.8" services: db: image: groonga/pgroonga:latest container_name: teldrive_db hostname: teldrive-db restart: always environment: - POSTGRES_USER=YOUR_DB_USERNAME - POSTGRES_PASSWORD=YOUR_DB_PASSWORD - POSTGRES_DB=teldrive volumes: - teldrive_db:/var/lib/postgresql/data healthcheck: test: ["CMD", "pg_isready", "-U", "teldrive"] interval: 10s start_period: 30s teldrive: image: ghcr.io/tgdrive/teldrive container_name: teldrive restart: always depends_on: db: condition: service_healthy environment: - TG_APP_ID=YOUR_API_ID #https://my.telegram.org/apps - TG_APP_HASH=YOUR_API_HASH #https://my.telegram.org/apps - JWT_SECRET=YOUR_GENERATED_JWT_SECRET #https://teldrive-docs.pages.dev/docs/getting-started/usage - DB_DATA_SOURCE=postgres://YOUR_DB_USERNAME:YOUR_DB_PASSWORD@db/teldrive?sslmode=disable volumes: - /volume1/docker/teldrive/config.toml:/config.toml - /volume1/docker/teldrive/session.db:/session.db ports: - "8080:8080" networks: postgres: external: true volumes: teldrive_db: