| services: |
| ai-story: |
| build: |
| context: . |
| dockerfile: Dockerfile |
| image: ai-story-creator:latest |
| container_name: ai-story-creator |
| ports: |
| - "8000:8000" |
| volumes: |
| |
| - ./data:/app/data |
| - ./logs:/app/logs |
| |
| - ./.env:/app/.env:ro |
| environment: |
| |
| - APP_NAME=AI Story Creator |
| - APP_VERSION=1.0.0 |
| - APP_HOST=0.0.0.0 |
| - APP_PORT=8000 |
| - DEBUG=false |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| restart: unless-stopped |
| healthcheck: |
| test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8000/health')"] |
| interval: 30s |
| timeout: 10s |
| retries: 3 |
| start_period: 10s |
| networks: |
| - ai-story-network |
|
|
| networks: |
| ai-story-network: |
| driver: bridge |
|
|