version: '3.8' services: domovoy-bot: build: . container_name: domovoy-bot network_mode: "host" restart: always environment: - PYTHONPATH=/app:/app/services - MUTT_DIR=/home/matrixhasyou/mutt - GOOGLE_CREDS_FILE=/home/matrixhasyou/domovoy_google_creds.json volumes: - /var/run/docker.sock:/var/run/docker.sock - ./logs:/app/logs - ./exports:/app/exports - ./data:/app/data - ../libs/swarmlib:/app/swarmlib:ro - /home/matrixhasyou/domovoy_google_creds.json:/home/matrixhasyou/domovoy_google_creds.json:ro - /home/matrixhasyou/mutt:/home/matrixhasyou/mutt:rw - /home/matrixhasyou/domovoy_drive_sync.py:/home/matrixhasyou/domovoy_drive_sync.py:ro - /home/matrixhasyou/.muttrc:/home/matrixhasyou/.muttrc:ro logging: driver: "json-file" options: max-size: "10m" max-file: "3" domovoy-web: build: . container_name: domovoy-web command: python -m uvicorn web.app:app --host 0.0.0.0 --port 8000 network_mode: "host" restart: always environment: - PYTHONPATH=/app:/app/services - MUTT_DIR=/home/matrixhasyou/mutt - GOOGLE_CREDS_FILE=/home/matrixhasyou/domovoy_google_creds.json volumes: - /var/run/docker.sock:/var/run/docker.sock - ./logs:/app/logs - ./exports:/app/exports - ./data:/app/data - ../libs/swarmlib:/app/swarmlib:ro - /home/matrixhasyou/domovoy_google_creds.json:/home/matrixhasyou/domovoy_google_creds.json:ro - /home/matrixhasyou/mutt:/home/matrixhasyou/mutt:rw - /home/matrixhasyou/domovoy_drive_sync.py:/home/matrixhasyou/domovoy_drive_sync.py:ro - /home/matrixhasyou/.muttrc:/home/matrixhasyou/.muttrc:ro logging: driver: "json-file" options: max-size: "10m" max-file: "3"