services: web: build: . image: lazybot:latest env_file: - ./.env ports: - "${PORT:-3000}:${PORT:-3000}" depends_on: db: condition: service_healthy restart: unless-stopped db: image: postgres:16-alpine env_file: - ./.env healthcheck: test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-lazybot} -d ${POSTGRES_DB:-lazybot}"] interval: 10s timeout: 5s retries: 5 volumes: - ${POSTGRES_DATA_PATH:-./data/postgres}:/var/lib/postgresql/data restart: unless-stopped volumes: {}