Things / dockerfile
Basementup's picture
Rename Dockerfile to dockerfile
11fc323 verified
Raw
History Blame Contribute Delete
854 Bytes
version: '3.8'
services:
complaint-tracker:
build: .
container_name: fos_complaint_tracker
restart: unless-stopped # Auto-restart on failure or reboot
environment:
- PYTHONUNBUFFERED=1 # Forces stdout/stderr to be printed immediately
volumes:
# Mount your .env file (secrets)
- ./.env:/app/.env:ro
# Mount the folder where your PDF lives and where reports will be saved
- ./data:/app/data
- ./reports:/app/reports
# Mount Gmail API credentials (if you use the inbox watcher)
# IMPORTANT: token.pickle must be generated ONCE on your host machine first
- ./credentials.json:/app/credentials.json:ro
- ./token.pickle:/app/token.pickle:ro
# Optional: override the command for debugging
# command: ["python", "-c", "print('Container is running')"]