security: remove hardcoded secrets, drop unneeded privileged mode, restrict internal-only ports to localhost

- watchtower: move Telegram token/chat ID to .env instead of plaintext in compose
- plex: remove stale/dead PLEX_CLAIM token
- uptime-kuma: mount docker.sock read-only (only needs to read container state)
- home-assistant: drop privileged: true (no device passthrough configured)
- glances: drop privileged: true, bind dashboard port to 127.0.0.1
- couchdb, docker-registry, leafweb: bind ports to 127.0.0.1 (proxy/localhost-only access confirmed, no direct LAN clients)
This commit is contained in:
2026-07-20 01:49:56 +00:00
parent 362643a064
commit 2f1a988ac3
8 changed files with 6 additions and 9 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ services:
container_name: couchdb
restart: always
ports:
- "5984:5984"
- "127.0.0.1:5984:5984"
environment:
- COUCHDB_USER=admin
- COUCHDB_PASSWORD=${ADMIN_PASSWORD}
+1 -1
View File
@@ -40,4 +40,4 @@ services:
- /srv/registry/data:/data
- /srv/registry/registry.password:/auth/registry.password
ports:
- 5000
- 127.0.0.1:5000:5000
+1 -2
View File
@@ -3,9 +3,8 @@ services:
container_name: glances
image: 'nicolargo/glances:ubuntu-latest-full'
restart: unless-stopped
privileged: true
ports:
- 61208-61209:61208-61209
- 127.0.0.1:61208-61209:61208-61209
environment:
- TZ=${TZ}
- NVIDIA_VISIBLE_DEVICES=all
-1
View File
@@ -18,4 +18,3 @@ services:
- VIRTUAL_PORT=8123
- LETSENCRYPT_HOST=homeassistant.kolpacksoftware.com
restart: unless-stopped
privileged: true
+1 -1
View File
@@ -7,4 +7,4 @@ services:
SA_PASSWORD: ${SA_PASSWORD}
ACCEPT_EULA: Y
ports:
- "1433:1433"
- "127.0.0.1:1433:1433"
-1
View File
@@ -19,7 +19,6 @@ services:
- 32414:32414/udp
environment:
- TZ=America/New_York
- PLEX_CLAIM=claim-VCuJznuC2nxFyVgAcKec
- ADVERTISE_IP=http://73.108.236.191:32400/
- NVIDIA_VISIBLE_DEVICES=all
- NVIDIA_DRIVER_CAPABILITIES=compute,video,utility
+1 -1
View File
@@ -5,7 +5,7 @@ services:
restart: unless-stopped
volumes:
- /srv/uptime-kuma/data:/app/data
- /var/run/docker.sock:/var/run/docker.sock
- /var/run/docker.sock:/var/run/docker.sock:ro
environment:
- TZ=America/New_York
- VIRTUAL_HOST=uptime.kolpacksoftware.com
+1 -1
View File
@@ -8,7 +8,7 @@ services:
environment:
- WATCHTOWER_POLL_INTERVAL=300
- WATCHTOWER_CLEANUP=true
- WATCHTOWER_NOTIFICATION_URL=telegram://8585007357:AAHtiEFm30Mpg6zl_1hww-BAWPXWu9GsDB0@telegram?chats=8444709468
- WATCHTOWER_NOTIFICATION_URL=telegram://${TELEGRAM_BOT_TOKEN}@telegram?chats=${TELEGRAM_CHAT_ID}
labels:
- com.centurylinklabs.watchtower.enable=false
restart: unless-stopped