- Add Dockerfile for Python 3.12-slim based backend image - Add docker-compose.yml for service orchestration - Add .dockerignore to optimize build context - Include health check and reference docs in container 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
19 lines
399 B
YAML
19 lines
399 B
YAML
services:
|
|
backend:
|
|
build:
|
|
context: .
|
|
dockerfile: backend/Dockerfile
|
|
ports:
|
|
- "8000:8000"
|
|
env_file:
|
|
- backend/.env
|
|
environment:
|
|
- HOST=0.0.0.0
|
|
- PORT=8000
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 10s
|
|
restart: unless-stopped
|