Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b7b317fb41 |
+13
-68
@@ -1,71 +1,16 @@
|
|||||||
services:
|
services:
|
||||||
SnapOtter:
|
beszel-agent:
|
||||||
image: snapotter/snapotter:latest # or ghcr.io/snapotter-hq/snapotter:latest
|
image: henrygd/beszel-agent
|
||||||
container_name: snapotter
|
container_name: beszel-agent
|
||||||
# ports:
|
restart: unless-stopped
|
||||||
# - "1349:1349"
|
network_mode: host
|
||||||
networks:
|
|
||||||
- bragi-local
|
|
||||||
volumes:
|
volumes:
|
||||||
- /opt/10_images/snapotter:/data
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||||
|
- ./beszel_agent_data:/var/lib/beszel-agent
|
||||||
|
# monitor other disks / partitions by mounting a folder in /extra-filesystems
|
||||||
|
# - /mnt/disk/.beszel:/extra-filesystems/sda1:ro
|
||||||
environment:
|
environment:
|
||||||
- AUTH_ENABLED=true
|
LISTEN: 45876
|
||||||
- DEFAULT_USERNAME=admin
|
KEY: 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIxkVlQYp9JrZWveL6N6wT7alryDtXlSt9MKukD7cJCd'
|
||||||
- DEFAULT_PASSWORD=admin
|
TOKEN: b171f6b8-0414-4ab2-a4e2-5bdd635fa882
|
||||||
- DATABASE_URL=postgres://snapotter:snapotter@postgres:5432/snapotter
|
HUB_URL: https://beszel.doeringer.eu
|
||||||
- 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:
|
|
||||||
bragi-local:
|
|
||||||
external: true
|
|
||||||
Reference in New Issue
Block a user