52 lines
1.5 KiB
YAML
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:
|
|
# :cuda tag attempts GPU but falls back to CPU if CUDA version mismatch
|
|
# (libcudart.so.11.0 required; GTX 1660 SUPER with driver 590 has CUDA 12).
|
|
# ML inference still works on CPU - adequate for a single printer.
|
|
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/ml_api
|
|
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
|