3 Commits
Author SHA1 Message Date
tobbbs 4082c7513f Update compose.yaml 2026-06-15 14:06:38 +02:00
tobbbs 56adfde7dd Update compose.yaml 2026-06-15 13:56:01 +02:00
tobbbs fb67719bb7 Add compose.yaml 2026-06-15 12:18:27 +02:00
+19 -58
View File
@@ -1,70 +1,31 @@
services: services:
SnapOtter: open-webui:
image: snapotter/snapotter:latest # or ghcr.io/snapotter-hq/snapotter:latest # ports:
container_name: snapotter # - 3000:8080
# 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: 1 count: all
capabilities: [gpu] capabilities:
- gpu
postgres: volumes:
image: postgres:17-alpine - /opt/09_ki/ollama:/root/.ollama
container_name: snapotter_postgres - /opt/09_ki/open-webui:/app/backend/data
environment: container_name: open-webui
POSTGRES_USER: snapotter restart: always
POSTGRES_PASSWORD: snapotter image: ghcr.io/open-webui/open-webui:ollama
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:
SnapOtter-data: ollama:
SnapOtter-pgdata: external: true
SnapOtter-redisdata: name: ollama
open-webui:
external: true
name: open-webui
networks: networks:
bragi-local: bragi-local: