Files
deals24togo_be/docker-compose.yml
belviskhoremk c4d836a0f9 Initial commit
2026-03-06 22:57:58 +00:00

23 lines
490 B
YAML

version: "3.9"
services:
api:
build: .
ports:
- "8000:8000"
env_file:
- .env
environment:
- APP_ENV=development
- DEBUG=true
volumes:
- .:/app
command: >
uvicorn app.main:create_app --factory
--host 0.0.0.0 --port 8000 --reload
healthcheck:
test: ["CMD", "python", "-c", "import httpx; r = httpx.get('http://localhost:8000/health'); r.raise_for_status()"]
interval: 30s
timeout: 5s
retries: 3