services: postgres: image: postgres:17-alpine environment: POSTGRES_DB: futaloli POSTGRES_USER: futaloli POSTGRES_PASSWORD: futaloli ports: - "127.0.0.1:${PG_PORT:-5432}:5432" volumes: - postgres-data:/var/lib/postgresql/data healthcheck: test: ["CMD-SHELL", "pg_isready -U futaloli"] interval: 2s timeout: 2s retries: 20 app: build: . env_file: .env environment: DATABASE_URL: postgresql://futaloli:futaloli@postgres:5432/futaloli LOCAL_STORAGE_PATH: /app/data ports: - "127.0.0.1:${PORT:-3000}:${PORT:-3000}" volumes: - image-data:/app/data depends_on: postgres: condition: service_healthy volumes: postgres-data: image-data: