File size: 853 Bytes
eee72f7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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')"]