initial commit

This commit is contained in:
theo
2025-12-23 21:26:51 +01:00
commit 998aee02c4
3 changed files with 49 additions and 0 deletions

45
docker-compose.yml Normal file
View File

@@ -0,0 +1,45 @@
services:
netdata:
image: netdata/netdata:latest
container_name: netdata
hostname: bananaserver
restart: unless-stopped
cap_add:
- SYS_PTRACE
- SYS_ADMIN
security_opt:
- apparmor:unconfined
volumes:
- netdataconfig:/etc/netdata
- netdatalib:/var/lib/netdata
- netdatacache:/var/cache/netdata
- /etc/passwd:/host/etc/passwd:ro
- /etc/group:/host/etc/group:ro
- /proc:/host/proc:ro
- /sys:/host/sys:ro
- /etc/os-release:/host/etc/os-release:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./acme.json:/acme.json
- ./traefik.yml:/etc/traefik/traefik.yml:ro
- ./config:/etc/traefik/config:ro
#environment:
# - NETDATA_CLAIM_TOKEN=
# - NETDATA_CLAIM_ROOMS=
# - NETDATA_CLAIM_URL=https://app.netdata.cloud
networks:
- traefik-net
labels:
- "traefik.enable=true"
- "traefik.http.routers.portainer.rule=Host(`${DOMAIN}`)"
- "traefik.http.routers.portainer.entrypoints=websecure"
- "traefik.http.routers.portainer.tls.certresolver=letsencrypt"
- "traefik.http.services.portainer-backend.loadbalancer.server.port=19999"
networks:
traefik-net:
external: true
volumes:
netdataconfig:
netdatalib:
netdatacache: