Compare commits
5
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ff1fddb111 | ||
|
|
ee594dc1d3 | ||
|
|
82a3f0e2d2 | ||
|
|
3ab0875242 | ||
|
|
60ac4f50a5 |
+68
-17
@@ -1,20 +1,71 @@
|
|||||||
services:
|
services:
|
||||||
databasement:
|
SnapOtter:
|
||||||
image: davidcrty/databasement:1
|
image: snapotter/snapotter:latest # or ghcr.io/snapotter-hq/snapotter:latest
|
||||||
container_name: databasement
|
container_name: snapotter
|
||||||
user: "1000:1000"
|
# ports:
|
||||||
# ports:
|
# - "1349:1349"
|
||||||
# - 2226:2226
|
networks:
|
||||||
environment:
|
- bragi-local
|
||||||
- DB_CONNECTION=sqlite
|
volumes:
|
||||||
- DB_DATABASE=/data/database.sqlite
|
- /opt/10_images/snapotter:/data
|
||||||
- ENABLE_QUEUE_WORKER=true
|
environment:
|
||||||
volumes:
|
- AUTH_ENABLED=true
|
||||||
- /opt/98_backups/databasement:/data
|
- DEFAULT_USERNAME=admin
|
||||||
- /mnt/immich/Backups:/backups
|
- DEFAULT_PASSWORD=admin
|
||||||
networks:
|
- DATABASE_URL=postgres://snapotter:snapotter@postgres:5432/snapotter
|
||||||
- bragi-local
|
- REDIS_URL=redis://redis:6379
|
||||||
|
depends_on:
|
||||||
|
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:
|
||||||
|
- 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:
|
||||||
external: true
|
external: true
|
||||||
Reference in New Issue
Block a user