Files
docker-infrastructure/obico/docker-compose.yml
T
poprhythm a6f2d4c4b2 Mount model_cache volume for Obico ML model weights
Model weights (~193MB each, darknet + onnx) are stored at
/srv/obico/config/model_cache/ and mounted at /model_cache in the
container since they are not baked into the imagegenius image.
2026-02-26 16:46:28 +00:00

52 lines
1.5 KiB
YAML

services:
obico-redis:
image: redis:7.2-alpine
container_name: obico-redis
restart: unless-stopped
networks:
- obico-internal
obico:
# Use :cuda for NVIDIA GPU acceleration, :latest for CPU-only
# Note: :cuda tag has had occasional CUDNN/ONNX version issues after updates.
# If obico fails to start after an image update, switch to :latest temporarily.
image: ghcr.io/imagegenius/obico:cuda
container_name: obico
restart: unless-stopped
depends_on:
- obico-redis
environment:
- PUID=1000
- PGID=1000
- TZ=America/New_York
- REDIS_URL=redis://obico-redis:6379
# HOST_IP must exactly match the URL used to access Obico (no trailing slash, no http://)
# Wrong value causes HTTP 500 errors on all page loads
- HOST_IP=obico.kolpacksoftware.com
- SITE_USES_HTTPS=True
- CSRF_TRUSTED_ORIGINS=["https://obico.kolpacksoftware.com"]
- DJANGO_SECRET_KEY=${DJANGO_SECRET_KEY}
# Set to True temporarily to register your account, then back to False
- ACCOUNT_ALLOW_SIGN_UP=False
volumes:
- /srv/obico/config:/config
- /srv/obico/config/model_cache:/model_cache
ports:
- "3334:3334"
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
networks:
- npm-network
- obico-internal
networks:
npm-network:
external: true
obico-internal:
driver: bridge