Spaces:
No application file
No application file
| # docker-compose.yml | |
| version: '3.8' | |
| services: | |
| # 1. The Chatbot Application Service | |
| app: | |
| build: | |
| context: . # Use the project root as the build context | |
| dockerfile: app/Dockerfile # Specify the path to this service's Dockerfile | |
| restart: always | |
| ports: | |
| # Maps host port 7860 to the container's port 8501 | |
| - "7860:8501" | |
| volumes: | |
| # Mounts the metrics directory for data sharing and persistence | |
| - ./metrics:/app/metrics | |
| # 2. The Monitoring Dashboard Service | |
| dashboard: | |
| build: | |
| context: . # Use the project root as the build context | |
| dockerfile: dashboard/Dockerfile # Specify the path to this service's Dockerfile | |
| restart: always | |
| ports: | |
| # Maps host port 7861 to the container's port 8502 | |
| - "7861:8502" | |
| volumes: | |
| # Mounts the same metrics directory to read the data | |
| - ./metrics:/app/metrics | |