| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- version: '3.8'
- services:
- visa-sentinel:
- build: .
- image: coordinator:latest
- container_name: coordinator-sentinel
- command: ["python3", "main.py", "sentinel"]
- restart: unless-stopped
- shm_size: '2gb'
- volumes:
- - ./config:/app/config
- - ./logs:/app/logs
- - ./data:/app/data
- - ./plugins:/app/plugins
- environment:
- - TZ=Asia/Shanghai
- - DISPLAY=:99
- - CHROME_BIN=/opt/ungoogled-chromium/chrome
- - MIHOMO_BIN=/bin/mihomo
- - NODE_ID=${NODE_ID:-node01}
- deploy:
- resources:
- limits:
- cpus: '2.0'
- memory: 2G
- visa-booker:
- build: .
- image: coordinator:latest
- container_name: coordinator-booker
- command: ["python3", "main.py", "booker"]
- restart: unless-stopped
- shm_size: '2gb'
- volumes:
- - ./config:/app/config
- - ./logs:/app/logs
- - ./data:/app/data
- - ./plugins:/app/plugins
- environment:
- - TZ=Asia/Shanghai
- - DISPLAY=:99
- - CHROME_BIN=/opt/ungoogled-chromium/chrome
- - MIHOMO_BIN=/bin/mihomo
- - NODE_ID=${NODE_ID:-node01}
- deploy:
- resources:
- limits:
- cpus: '2.0'
- memory: 2G
- visa-standalone:
- build: .
- image: coordinator:latest
- container_name: coordinator-standalone
- command: ["python3", "main.py", "standalone"]
- restart: unless-stopped
- shm_size: '2gb'
- volumes:
- - ./config:/app/config
- - ./logs:/app/logs
- - ./data:/app/data
- - ./plugins:/app/plugins
- environment:
- - TZ=Asia/Shanghai
- - DISPLAY=:99
- - CHROME_BIN=/opt/ungoogled-chromium/chrome
- - MIHOMO_BIN=/bin/mihomo
- - NODE_ID=${NODE_ID:-node01}
- deploy:
- resources:
- limits:
- cpus: '2.0'
- memory: 2G
- visa-sweeper:
- build: .
- image: coordinator:latest
- container_name: coordinator-sweeper
- command: ["python3", "main_sweeper.py"]
- restart: unless-stopped
- volumes:
- - ./config:/app/config
- - ./data:/app/data
- - ./logs:/app/logs
- environment:
- - TZ=Asia/Shanghai
- - NODE_ID=${NODE_ID:-node01}
- deploy:
- resources:
- limits:
- cpus: '0.2'
- memory: 256M
|