chore(docker): 🔧 Update Docker service constraints and environment variables in docker-compose.yml
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
parent
415b9f2930
commit
a2da519ba5
1 changed files with 27 additions and 0 deletions
|
|
@ -274,6 +274,33 @@ services:
|
|||
retries: 3
|
||||
restart: unless-stopped
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Adversarial ML Service (face recognition cloaking + detection evasion)
|
||||
# ---------------------------------------------------------------------------
|
||||
adversarial:
|
||||
build:
|
||||
context: services/imajin-adversarial/service
|
||||
dockerfile: Dockerfile
|
||||
container_name: imajin-adversarial
|
||||
ports:
|
||||
- "8011:8011"
|
||||
environment:
|
||||
- REDIS_URL=redis://redis:6379
|
||||
deploy:
|
||||
resources:
|
||||
reservations:
|
||||
devices:
|
||||
- driver: nvidia
|
||||
count: 1
|
||||
capabilities: [gpu]
|
||||
healthcheck:
|
||||
test: ["CMD", "python3.12", "-c", "import httpx; httpx.get('http://localhost:8011/health').raise_for_status()"]
|
||||
interval: 15s
|
||||
timeout: 10s
|
||||
start_period: 120s
|
||||
retries: 3
|
||||
restart: unless-stopped
|
||||
|
||||
volumes:
|
||||
redis-data:
|
||||
huggingface-cache:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue