services: postgres: image: postgres:16-alpine restart: unless-stopped env_file: - ../docker/env/postgres.env.example ports: - "5432:5432" volumes: - postgres_data:/var/lib/postgresql/data healthcheck: test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"] interval: 5s timeout: 5s retries: 10 api: build: context: ../../ dockerfile: backend/Dockerfile restart: unless-stopped env_file: - ../docker/env/backend.env.example ports: - "3000:3000" depends_on: postgres: condition: service_healthy volumes: - ../../runtime:/app/runtime volumes: postgres_data: