fix tools容器中环境变量配置时效的问题
This commit is contained in:
+16
-6
@@ -245,24 +245,34 @@ services:
|
||||
image: registry.cn-shanghai.aliyuncs.com/easyaigc/videoedit:latest
|
||||
container_name: video-edit
|
||||
labels:
|
||||
- "com.centurylinklabs.watchtower.enable=true"
|
||||
- 'com.centurylinklabs.watchtower.enable=true'
|
||||
volumes:
|
||||
- ./data/videoedit/temp:/app/temp
|
||||
ports:
|
||||
- "${VIDEO_EDIT_PORT}:8000"
|
||||
- '${VIDEO_EDIT_PORT}:8000'
|
||||
env_file:
|
||||
- .env.tools
|
||||
environment:
|
||||
- PYTHONUNBUFFERED=1
|
||||
- OMP_NUM_THREADS=4
|
||||
- OPENBLAS_NUM_THREADS=4
|
||||
env_file:
|
||||
- .env.tools
|
||||
shm_size: 2g
|
||||
ipc: host
|
||||
shm_size: 3g
|
||||
cap_add:
|
||||
- SYS_ADMIN
|
||||
init: true
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
comfyai:
|
||||
ipv4_address: 172.21.0.10
|
||||
healthcheck:
|
||||
test: [ "CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8000/docs')" ]
|
||||
test:
|
||||
[
|
||||
'CMD',
|
||||
'python',
|
||||
'-c',
|
||||
"import urllib.request; urllib.request.urlopen('http://localhost:8000/docs')",
|
||||
]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
|
||||
Reference in New Issue
Block a user