2 Commits
Author SHA1 Message Date
tobbbs 1a15ab14e4 Update compose.yaml 2026-06-23 11:56:06 +02:00
tobbbs f344e358d5 Add compose.yaml 2026-06-23 11:30:20 +02:00
+29 -61
View File
@@ -1,70 +1,38 @@
services:
SnapOtter:
image: snapotter/snapotter:latest # or ghcr.io/snapotter-hq/snapotter:latest
container_name: snapotter
# ports:
# - "1349:1349"
networks:
- bragi-local
volumes:
- /opt/10_images/snapotter:/data
windows:
image: dockurr/windows
container_name: windows
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
VERSION: "10"
RAM_SIZE: "16G"
CPU_CORES: "8"
LANGUAGE: "English"
REGION: "de-DE"
KEYBOARD: "de-DE"
devices:
- /dev/kvm
- /dev/net/tun
cap_add:
- NET_ADMIN
ports:
- 8006:8006
- 3389:3389/tcp
- 3389:3389/udp
volumes:
- /mnt/immich/windows:/storage
restart: always
runtime: nvidia
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
postgres:
image: postgres:17-alpine
container_name: snapotter_postgres
environment:
POSTGRES_USER: snapotter
POSTGRES_PASSWORD: snapotter
POSTGRES_DB: snapotter
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [gpu]
networks:
- 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
stop_grace_period: 2m
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:
SnapOtter-data:
SnapOtter-pgdata:
SnapOtter-redisdata:
networks:
bragi-local: