38 lines
723 B
YAML
Executable File
38 lines
723 B
YAML
Executable File
services:
|
|
quantum-backend:
|
|
build:
|
|
context: .
|
|
environment:
|
|
PORT: 1656
|
|
extra_hosts:
|
|
- "auth.localhost:host-gateway"
|
|
ports:
|
|
- 1656:1656
|
|
depends_on:
|
|
db:
|
|
condition: service_healthy
|
|
redis:
|
|
condition: service_started
|
|
restart: unless-stopped
|
|
env_file: .env
|
|
|
|
redis:
|
|
image: "redis:alpine"
|
|
ports:
|
|
- "6379:6379"
|
|
restart: unless-stopped
|
|
|
|
db:
|
|
image: postgres:18.3
|
|
environment:
|
|
POSTGRES_USER: postgres
|
|
POSTGRES_PASSWORD: postgres
|
|
POSTGRES_DB: fastapi_db
|
|
ports:
|
|
- "5432:5432"
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U postgres"]
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 5
|