Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ff1fddb111 | ||
|
|
ee594dc1d3 | ||
|
|
82a3f0e2d2 | ||
|
|
3ab0875242 | ||
|
|
60ac4f50a5 |
+57
-18
@@ -1,31 +1,70 @@
|
|||||||
services:
|
services:
|
||||||
open-webui:
|
SnapOtter:
|
||||||
# ports:
|
image: snapotter/snapotter:latest # or ghcr.io/snapotter-hq/snapotter:latest
|
||||||
# - 3000:8080
|
container_name: snapotter
|
||||||
|
# ports:
|
||||||
|
# - "1349:1349"
|
||||||
|
networks:
|
||||||
|
- bragi-local
|
||||||
|
volumes:
|
||||||
|
- /opt/10_images/snapotter:/data
|
||||||
|
environment:
|
||||||
|
- AUTH_ENABLED=true
|
||||||
|
- DEFAULT_USERNAME=admin
|
||||||
|
- DEFAULT_PASSWORD=admin
|
||||||
|
- DATABASE_URL=postgres://snapotter:snapotter@postgres:5432/snapotter
|
||||||
|
- REDIS_URL=redis://redis:6379
|
||||||
|
depends_on:
|
||||||
|
postgres:
|
||||||
|
condition: service_healthy
|
||||||
|
redis:
|
||||||
|
condition: service_healthy
|
||||||
|
restart: unless-stopped
|
||||||
deploy:
|
deploy:
|
||||||
resources:
|
resources:
|
||||||
reservations:
|
reservations:
|
||||||
devices:
|
devices:
|
||||||
- driver: nvidia
|
- driver: nvidia
|
||||||
count: all
|
count: 1
|
||||||
capabilities:
|
capabilities: [gpu]
|
||||||
- gpu
|
|
||||||
volumes:
|
postgres:
|
||||||
- /opt/09_ki/ollama:/root/.ollama
|
image: postgres:17-alpine
|
||||||
- /opt/09_ki/open-webui:/app/backend/data
|
container_name: snapotter_postgres
|
||||||
container_name: open-webui
|
environment:
|
||||||
restart: always
|
POSTGRES_USER: snapotter
|
||||||
image: ghcr.io/open-webui/open-webui:ollama
|
POSTGRES_PASSWORD: snapotter
|
||||||
|
POSTGRES_DB: snapotter
|
||||||
networks:
|
networks:
|
||||||
- bragi-local
|
- bragi-local
|
||||||
|
volumes:
|
||||||
|
- /opt/10_images/postgresql:/var/lib/postgresql/data
|
||||||
|
restart: unless-stopped
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD-SHELL", "pg_isready -U snapotter"]
|
||||||
|
interval: 10s
|
||||||
|
timeout: 5s
|
||||||
|
retries: 12
|
||||||
|
|
||||||
|
redis:
|
||||||
|
container_name: snapotter_redis
|
||||||
|
networks:
|
||||||
|
- bragi-local
|
||||||
|
image: redis:8-alpine
|
||||||
|
command: ["redis-server", "--maxmemory-policy", "noeviction", "--appendonly", "yes"]
|
||||||
|
volumes:
|
||||||
|
- /opt/10_images/redis:/data
|
||||||
|
restart: unless-stopped
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD", "redis-cli", "ping"]
|
||||||
|
interval: 10s
|
||||||
|
timeout: 5s
|
||||||
|
retries: 12
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
ollama:
|
SnapOtter-data:
|
||||||
external: true
|
SnapOtter-pgdata:
|
||||||
name: ollama
|
SnapOtter-redisdata:
|
||||||
open-webui:
|
|
||||||
external: true
|
|
||||||
name: open-webui
|
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
bragi-local:
|
bragi-local:
|
||||||
|
|||||||
Reference in New Issue
Block a user