Compare commits
3
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5657014293 | ||
|
|
08e6f60e22 | ||
|
|
176881da9d |
+11
-62
@@ -1,70 +1,19 @@
|
|||||||
services:
|
services:
|
||||||
SnapOtter:
|
databasement:
|
||||||
image: snapotter/snapotter:latest # or ghcr.io/snapotter-hq/snapotter:latest
|
image: davidcrty/databasement:1
|
||||||
container_name: snapotter
|
container_name: databasement
|
||||||
|
user: "1000:1000"
|
||||||
# ports:
|
# ports:
|
||||||
# - "1349:1349"
|
# - 2226:2226
|
||||||
networks:
|
|
||||||
- bragi-local
|
|
||||||
volumes:
|
|
||||||
- /opt/10_images/snapotter:/data
|
|
||||||
environment:
|
environment:
|
||||||
- AUTH_ENABLED=true
|
- DB_CONNECTION=sqlite
|
||||||
- DEFAULT_USERNAME=admin
|
- DB_DATABASE=/data/database.sqlite
|
||||||
- DEFAULT_PASSWORD=admin
|
- ENABLE_QUEUE_WORKER=true
|
||||||
- DATABASE_URL=postgres://snapotter:snapotter@postgres:5432/snapotter
|
volumes:
|
||||||
- REDIS_URL=redis://redis:6379
|
- /opt/98_backups/databasement:/data
|
||||||
depends_on:
|
- /mnt/immich/Backups:/backups
|
||||||
postgres:
|
|
||||||
condition: service_healthy
|
|
||||||
redis:
|
|
||||||
condition: service_healthy
|
|
||||||
restart: unless-stopped
|
|
||||||
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
|
|
||||||
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:
|
|
||||||
SnapOtter-data:
|
|
||||||
SnapOtter-pgdata:
|
|
||||||
SnapOtter-redisdata:
|
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
bragi-local:
|
bragi-local:
|
||||||
|
|||||||
Reference in New Issue
Block a user