services: kooltap-updater: build: context: . dockerfile: Dockerfile restart: unless-stopped depends_on: postgres: condition: service_healthy environment: GIN_MODE: release # Generated by Coolify (see Environment Variables); needed in the X-Admin-Token header to upload releases ADMIN_TOKEN: ${SERVICE_PASSWORD_64_ADMINTOKEN} DATABASE_URL: postgres://${SERVICE_USER_POSTGRES}:${SERVICE_PASSWORD_POSTGRES}@postgres:5432/${POSTGRES_DB:-kooltap}?sslmode=disable volumes: - kooltap_uploads:/app/uploads - kooltap_tmp:/app/tmp # Only needed until the old SQLite database has been imported into Postgres on first start - kooltap_data:/app/data expose: - "3000" healthcheck: test: ["CMD", "wget", "-qO-", "http://127.0.0.1:3000/"] interval: 15s timeout: 5s retries: 5 postgres: image: postgres:17-alpine restart: unless-stopped environment: POSTGRES_USER: ${SERVICE_USER_POSTGRES} POSTGRES_PASSWORD: ${SERVICE_PASSWORD_POSTGRES} POSTGRES_DB: ${POSTGRES_DB:-kooltap} volumes: - kooltap_postgres:/var/lib/postgresql/data healthcheck: test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"] interval: 5s timeout: 5s retries: 10 volumes: kooltap_uploads: kooltap_tmp: kooltap_data: kooltap_postgres: