chore(deploy): pass target password through env

This commit is contained in:
Zeusina committed 2026-10-10 10:10:36 +03:00
1 parent 5f3a6953ee
commit 2fbb247a1e
5 files changed
+76 -97

No files matched your search

+2 -7
View File
@@ -8,10 +8,9 @@ services:
privileged: false
cap_drop: [ALL]
# nft/NFQUEUE, nfqws2 raw sends, and --user=tpws UID/GID switching.
# DAC_OVERRIDE lets root read the invoking user's 0600 read-only secret bind.
# It is container-wide; expose only this secret and the fresh target-state bind.
cap_add: [NET_ADMIN, NET_RAW, SETUID, SETGID, DAC_OVERRIDE]
cap_add: [NET_ADMIN, NET_RAW, SETUID, SETGID]
environment:
SS_PASSWORD: ${SS_PASSWORD:?Set SS_PASSWORD in the deployment environment}
SOCKS_PORT: "1080"
ZAPRET_AUTOTUNE_TARGET_ROLE: managed-test
ZAPRET_AUTOTUNE_TARGET_ID: zapret-autotune-managed-v1
@@ -28,7 +27,6 @@ services:
target: /var/lib/zapret-autotune/target
bind:
create_host_path: false
secrets: [ss_password]
tmpfs:
- /run/zapret-autotune-ss:rw,noexec,nosuid,nodev,size=1m,mode=0700,uid=0,gid=0
networks: [target]
@@ -36,6 +34,3 @@ services:
networks:
target:
driver: bridge
secrets:
ss_password:
file: ./ss_password