services: bot: build: . ports: - "3000:3000" depends_on: db: condition: service_healthy environment: - PORT=3000 - DATABASE_URL=postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db:5432/${POSTGRES_DB} - PAIRS=${PAIRS:-BTC-USD} - INTERVAL=${INTERVAL:-5000} - THRESHOLD=${THRESHOLD:-0.01} healthcheck: test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3000/health"] interval: 30s timeout: 10s retries: 3 restart: unless-stopped db: image: docker.io/postgres:15-alpine env_file: ".env" volumes: - pgdata:/var/lib/postgresql/data healthcheck: test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-uphold} -d ${POSTGRES_DB:-uphold_db}"] interval: 5s timeout: 5s retries: 5 volumes: pgdata: