volumes: beep-data: services: beep-database: image: postgres:17 container_name: beep-database ports: - 127.0.0.1:5432:5432 environment: - POSTGRES_DB=beep - POSTGRES_USER=beep - POSTGRES_PASSWORD=beep # CHANGE THIS volumes: - beep-data:/var/lib/postgresql/data restart: on-failure:3 healthcheck: test: ["CMD", "pg_isready", "-d", "postgresql://localhost:5432", "-U", "beep"] interval: 30s timeout: 10s retries: 5 beep: build: . container_name: beep depends_on: beep-database: condition: service_healthy restart: true ports: - 8008:8008 volumes: - type: bind source: ${PWD}/config.real.maple target: /beep/config.real.maple restart: on-failure:3