docker-compose.yml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. version: '3.8'
  2. services:
  3. visa-sentinel:
  4. build: .
  5. image: coordinator:latest
  6. container_name: coordinator-sentinel
  7. command: ["python3", "main.py", "sentinel"]
  8. restart: unless-stopped
  9. shm_size: '2gb'
  10. volumes:
  11. - ./config:/app/config
  12. - ./logs:/app/logs
  13. - ./data:/app/data
  14. - ./plugins:/app/plugins
  15. environment:
  16. - TZ=Asia/Shanghai
  17. - DISPLAY=:99
  18. - CHROME_BIN=/opt/ungoogled-chromium/chrome
  19. - MIHOMO_BIN=/bin/mihomo
  20. deploy:
  21. resources:
  22. limits:
  23. cpus: '2.0'
  24. memory: 2G
  25. visa-booker:
  26. build: .
  27. image: coordinator:latest
  28. container_name: coordinator-booker
  29. command: ["python3", "main.py", "booker"]
  30. restart: unless-stopped
  31. shm_size: '2gb'
  32. volumes:
  33. - ./config:/app/config
  34. - ./logs:/app/logs
  35. - ./data:/app/data
  36. - ./plugins:/app/plugins
  37. environment:
  38. - TZ=Asia/Shanghai
  39. - DISPLAY=:99
  40. - CHROME_BIN=/opt/ungoogled-chromium/chrome
  41. - MIHOMO_BIN=/bin/mihomo
  42. deploy:
  43. resources:
  44. limits:
  45. cpus: '2.0'
  46. memory: 2G
  47. visa-standalone:
  48. build: .
  49. image: coordinator:latest
  50. container_name: coordinator-standalone
  51. command: ["python3", "main.py", "standalone"]
  52. restart: unless-stopped
  53. shm_size: '2gb'
  54. volumes:
  55. - ./config:/app/config
  56. - ./logs:/app/logs
  57. - ./data:/app/data
  58. - ./plugins:/app/plugins
  59. environment:
  60. - TZ=Asia/Shanghai
  61. - DISPLAY=:99
  62. - CHROME_BIN=/opt/ungoogled-chromium/chrome
  63. - MIHOMO_BIN=/bin/mihomo
  64. deploy:
  65. resources:
  66. limits:
  67. cpus: '2.0'
  68. memory: 2G
  69. visa-sweeper:
  70. build: .
  71. image: coordinator:latest
  72. container_name: coordinator-sweeper
  73. command: ["python3", "main_sweeper.py"]
  74. restart: unless-stopped
  75. volumes:
  76. - ./config:/app/config
  77. - ./data:/app/data
  78. - ./logs:/app/logs
  79. environment:
  80. - TZ=Asia/Shanghai
  81. deploy:
  82. resources:
  83. limits:
  84. cpus: '0.2'
  85. memory: 256M