|
|
@@ -1,34 +1,11 @@
|
|
|
version: '3.8'
|
|
|
|
|
|
services:
|
|
|
- # visa-sentinel:
|
|
|
- # build: .
|
|
|
- # image: coordinator:latest
|
|
|
- # container_name: coordinator-sentinel
|
|
|
- # command: ["python3", "main_sentinel.py"]
|
|
|
- # 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=/usr/bin/chromium
|
|
|
- # # 资源限制
|
|
|
- # deploy:
|
|
|
- # resources:
|
|
|
- # limits:
|
|
|
- # cpus: '2.0'
|
|
|
- # memory: 4G
|
|
|
-
|
|
|
- visa-booker:
|
|
|
+ visa-sentinel:
|
|
|
build: .
|
|
|
image: coordinator:latest
|
|
|
- container_name: coordinator-booker
|
|
|
- command: ["python3", "main_booker.py"]
|
|
|
+ container_name: coordinator-sentinel
|
|
|
+ command: ["python3", "main_sentinel.py"]
|
|
|
restart: unless-stopped
|
|
|
shm_size: '2gb'
|
|
|
volumes:
|
|
|
@@ -47,20 +24,43 @@ services:
|
|
|
cpus: '2.0'
|
|
|
memory: 4G
|
|
|
|
|
|
- visa-sweeper:
|
|
|
- build: .
|
|
|
- image: coordinator:latest
|
|
|
- container_name: coordinator-sweeper
|
|
|
- command: ["python3", "main_sweeper.py"]
|
|
|
- restart: unless-stopped
|
|
|
- volumes:
|
|
|
- - ./config:/app/config
|
|
|
- - ./logs:/app/logs
|
|
|
- environment:
|
|
|
- - TZ=Asia/Shanghai
|
|
|
- # 资源限制极低,因为它只是个网络请求脚本,不运行浏览器
|
|
|
- deploy:
|
|
|
- resources:
|
|
|
- limits:
|
|
|
- cpus: '0.2'
|
|
|
- memory: 256M
|
|
|
+ # visa-booker:
|
|
|
+ # build: .
|
|
|
+ # image: coordinator:latest
|
|
|
+ # container_name: coordinator-booker
|
|
|
+ # command: ["python3", "main_booker.py"]
|
|
|
+ # 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=/usr/bin/chromium
|
|
|
+ # # 资源限制
|
|
|
+ # deploy:
|
|
|
+ # resources:
|
|
|
+ # limits:
|
|
|
+ # cpus: '2.0'
|
|
|
+ # memory: 4G
|
|
|
+
|
|
|
+ # visa-sweeper:
|
|
|
+ # build: .
|
|
|
+ # image: coordinator:latest
|
|
|
+ # container_name: coordinator-sweeper
|
|
|
+ # command: ["python3", "main_sweeper.py"]
|
|
|
+ # restart: unless-stopped
|
|
|
+ # volumes:
|
|
|
+ # - ./config:/app/config
|
|
|
+ # - ./logs:/app/logs
|
|
|
+ # environment:
|
|
|
+ # - TZ=Asia/Shanghai
|
|
|
+ # # 资源限制极低,因为它只是个网络请求脚本,不运行浏览器
|
|
|
+ # deploy:
|
|
|
+ # resources:
|
|
|
+ # limits:
|
|
|
+ # cpus: '0.2'
|
|
|
+ # memory: 256M
|