services: muse: build: . container_name: muse ports: - "10003:10003" env_file: .env environment: DATABASE_URL: "postgresql+asyncpg://musehub:${DB_PASSWORD:-musehub}@postgres:5432/musehub" volumes: - muse_data:/data depends_on: postgres: condition: service_healthy restart: unless-stopped postgres: image: postgres:16-alpine container_name: muse_postgres environment: POSTGRES_DB: musehub POSTGRES_USER: musehub POSTGRES_PASSWORD: "${DB_PASSWORD:-musehub}" volumes: - postgres_data:/var/lib/postgresql/data healthcheck: test: ["CMD-SHELL", "pg_isready -U musehub -d musehub"] interval: 5s timeout: 5s retries: 10 restart: unless-stopped volumes: muse_data: postgres_data: