23 lines
527 B
YAML
23 lines
527 B
YAML
version: "3.8"
|
|
|
|
services:
|
|
app:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
ports:
|
|
- "8000:8000"
|
|
volumes:
|
|
# Mount source code for hot-reloading during development
|
|
- ./src:/app/src:ro
|
|
environment:
|
|
- ENVIRONMENT=development
|
|
command: ["--host", "0.0.0.0", "--port", "8000", "--reload"]
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 5s
|