services: app: build: . ports: - '3000:3000' env_file: - .env environment: DATABASE_URL: postgresql://postgres:postgres@postgres:5432/firehose depends_on: postgres: condition: service_healthy restart: unless-stopped postgres: image: postgres:16 environment: POSTGRES_USER: postgres POSTGRES_PASSWORD: postgres POSTGRES_DB: firehose ports: - '5432:5432' volumes: - postgres_data:/var/lib/postgresql/data healthcheck: test: ['CMD-SHELL', 'pg_isready -U postgres'] interval: 5s timeout: 5s retries: 5 volumes: postgres_data: