@@ -14,11 +14,11 @@ services:
1414 - PORT=8000
1515 - META_MODEL_ARTIFACTS_DIR=/app/meta_model_artifacts
1616 - DEEPSAFE_CONFIG_FILE_PATH=/app/config/deepsafe_config.json
17+ # - LOG_LEVEL=debug # Optional: for more verbose API logs
1718 depends_on :
1819 - npr_deepfakedetection
1920 - universalfakedetect
20- - cross_efficient_vit
21- - vocoder_artifacts
21+ # Add other future video/audio model service names here
2222 networks :
2323 - deepsafe-network
2424
@@ -37,6 +37,36 @@ services:
3737 networks :
3838 - deepsafe-network
3939
40+ # yermandy_clip_detection:
41+ # build: ./models/image/yermandy_clip_detection
42+ # container_name: deepsafe-yermandy-clip-detection
43+ # ports:
44+ # - "5002:5002"
45+ # restart: unless-stopped
46+ # environment:
47+ # - MODEL_PORT=5002
48+ # - MODEL_PATH=model_code/weights/model.ckpt
49+ # - PRELOAD_MODEL=false
50+ # - MODEL_TIMEOUT=600
51+ # - USE_GPU=false
52+ # networks:
53+ # - deepsafe-network
54+
55+ # wavelet_clip_detection:
56+ # build: ./models/image/wavelet_clip_detection
57+ # container_name: deepsafe-wavelet-clip-detection
58+ # ports:
59+ # - "5003:5003"
60+ # restart: unless-stopped
61+ # environment:
62+ # - MODEL_PORT=5003
63+ # - MODEL_PATH=model_code/weights/clip_wavelet_best.pth
64+ # - PRELOAD_MODEL=false
65+ # - MODEL_TIMEOUT=600
66+ # - USE_GPU=false
67+ # networks:
68+ # - deepsafe-network
69+
4070 universalfakedetect :
4171 build : ./models/image/universalfakedetect
4272 container_name : deepsafe-universalfakedetect
@@ -51,7 +81,48 @@ services:
5181 networks :
5282 - deepsafe-network
5383
54- # --- Video Model Services ---
84+ # trufor:
85+ # build: ./models/image/trufor
86+ # container_name: deepsafe-trufor
87+ # ports:
88+ # - "5005:5005"
89+ # restart: unless-stopped
90+ # environment:
91+ # - MODEL_PORT=5005
92+ # - PRELOAD_MODEL=false
93+ # - MODEL_TIMEOUT=600
94+ # - USE_GPU=false
95+ # networks:
96+ # - deepsafe-network
97+
98+ # spsl_deepfake_detection:
99+ # build: ./models/image/spsl_deepfake_detection
100+ # container_name: deepsafe-spsl-deepfake-detection
101+ # ports:
102+ # - "5006:5006"
103+ # restart: unless-stopped
104+ # environment:
105+ # - MODEL_PORT=5006
106+ # - PRELOAD_MODEL=false
107+ # - MODEL_TIMEOUT=600
108+ # - USE_GPU=false
109+ # networks:
110+ # - deepsafe-network
111+
112+ # ucf_deepfake_detection:
113+ # build: ./models/image/ucf_deepfake_detection
114+ # container_name: deepsafe-ucf-deepfake-detection
115+ # ports:
116+ # - "5007:5007"
117+ # restart: unless-stopped
118+ # environment:
119+ # - MODEL_PORT=5007
120+ # - PRELOAD_MODEL=false
121+ # - MODEL_TIMEOUT=600
122+ # - USE_GPU=false
123+ # networks:
124+ # - deepsafe-network
125+
55126 cross_efficient_vit :
56127 build : ./models/video/cross_efficient_vit
57128 container_name : deepsafe-cross-efficient-vit
@@ -60,34 +131,42 @@ services:
60131 restart : unless-stopped
61132 environment :
62133 - MODEL_PORT=7001
63- - PRELOAD_MODEL=false
64- - MODEL_TIMEOUT=900
65- - USE_GPU=false
134+ - PRELOAD_MODEL=false
135+ - MODEL_TIMEOUT=900 # Video models might be heavier, allow longer idle time
136+ - USE_GPU=false # Ensure CPU operation
137+ # The following are set within the cross_efficient_vit/Dockerfile,
138+ # but can be overridden here if needed for different weight files for the same image:
139+ # - DEFAULT_MODEL_VARIANT="cross_efficient_vit"
140+ # - CROSS_EFFICIENT_VIT_MODEL_PATH="/app/model_code/cross-efficient-vit/pretrained_models/cross_efficient_vit.pth"
141+ # - EFFICIENT_VIT_MODEL_PATH="/app/model_code/efficient-vit/pretrained_models/efficient_vit.pth"
142+ # - CROSS_EFFICIENT_VIT_CONFIG_PATH="/app/model_code/cross-efficient-vit/configs/architecture.yaml"
143+ # - EFFICIENT_VIT_CONFIG_PATH="/app/model_code/efficient-vit/configs/architecture.yaml"
144+ # - FRAMES_PER_VIDEO="15" # If you want to control frame sampling from docker-compose
66145 networks :
67146 - deepsafe-network
147+ # Optional: Add resource limits for CPU/memory if this model is resource-intensive
148+ # deploy:
149+ # resources:
150+ # limits:
151+ # cpus: '2.0'
152+ # memory: 4G
68153
69- # --- Audio Model Services ---
70- vocoder_artifacts :
71- build : ./models/audio/vocoder_artifacts
72- container_name : deepsafe-vocoder-artifacts
73- ports :
74- - " 8001:8001"
75- restart : unless-stopped
76- environment :
77- - MODEL_PORT=8001
78- - PRELOAD_MODEL=false
79- - MODEL_TIMEOUT=600
80- - USE_GPU=false
81- volumes :
82- - ./models/audio/vocoder_artifacts/models:/app/models:ro
83- networks :
84- - deepsafe-network
154+ # --- Placeholder for future audio model service ---
155+ # example_audio_model_1:
156+ # build: ./models/audio/example_audio_model_1
157+ # container_name: deepsafe-example-audio-model-1
158+ # ports:
159+ # - "8001:8001"
160+ # restart: unless-stopped
161+ # # ... environment ...
162+ # networks:
163+ # - deepsafe-network
85164
86165 frontend :
87166 build : ./frontend
88167 container_name : deepsafe-frontend
89168 ports :
90- - " 80 :80"
169+ - " 8888 :80"
91170 restart : unless-stopped
92171 depends_on :
93172 - api
@@ -96,4 +175,4 @@ services:
96175
97176networks :
98177 deepsafe-network :
99- driver : bridge
178+ driver : bridge
0 commit comments