| services: | |
| web: | |
| build: | |
| context: . | |
| dockerfile: Dockerfile | |
| container_name: personal-ai-web-assistant | |
| ports: | |
| - "${PORT:-8000}:8000" | |
| env_file: | |
| - .env | |
| environment: | |
| PORT: 8000 | |
| volumes: | |
| - app_data:/app/backend/data | |
| restart: unless-stopped | |
| healthcheck: | |
| test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://127.0.0.1:8000/health', timeout=3)"] | |
| interval: 30s | |
| timeout: 5s | |
| retries: 3 | |
| start_period: 20s | |
| volumes: | |
| app_data: | |