Spaces:
Build error
Build error
Create YAML
Browse files
YAML
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version: '3.8'
|
| 2 |
+
|
| 3 |
+
services:
|
| 4 |
+
complaint-tracker:
|
| 5 |
+
build: .
|
| 6 |
+
container_name: fos_complaint_tracker
|
| 7 |
+
restart: unless-stopped # Auto-restart on failure or reboot
|
| 8 |
+
environment:
|
| 9 |
+
- PYTHONUNBUFFERED=1 # Forces stdout/stderr to be printed immediately
|
| 10 |
+
volumes:
|
| 11 |
+
# Mount your .env file (secrets)
|
| 12 |
+
- ./.env:/app/.env:ro
|
| 13 |
+
|
| 14 |
+
# Mount the folder where your PDF lives and where reports will be saved
|
| 15 |
+
- ./data:/app/data
|
| 16 |
+
- ./reports:/app/reports
|
| 17 |
+
|
| 18 |
+
# Mount Gmail API credentials (if you use the inbox watcher)
|
| 19 |
+
# IMPORTANT: token.pickle must be generated ONCE on your host machine first
|
| 20 |
+
- ./credentials.json:/app/credentials.json:ro
|
| 21 |
+
- ./token.pickle:/app/token.pickle:ro
|
| 22 |
+
|
| 23 |
+
# Optional: override the command for debugging
|
| 24 |
+
# command: ["python", "-c", "print('Container is running')"]
|