Skip to content

Commit 9ff1cf6

Browse files
authored
Docker: Replace static value by env variable in Supervisord config (#2762)
Signed-off-by: Viet Nguyen Duc <[email protected]>
1 parent 97c659a commit 9ff1cf6

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Base/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@ ENV SE_BIND_HOST="false" \
216216
SE_SUPERVISORD_PID_FILE="/tmp/supervisord.pid" \
217217
SE_SUPERVISORD_AUTO_RESTART="true" \
218218
SE_SUPERVISORD_START_RETRIES="5" \
219+
SE_SUPERVISORD_UNIX_SERVER_PASSWORD="secret" \
219220
SE_LOG_TIMESTAMP_FORMAT="%Y-%m-%d %H:%M:%S,%3N" \
220221
SE_LOG_LEVEL="INFO" \
221222
SE_HTTP_LOGS="false" \

Base/supervisord.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ minprocs=200 ; (min. avail process descriptors;
1515
file=/tmp/supervisor.sock ; (the path to the socket file)
1616
chmod=0700
1717
username=%(ENV_SEL_USER)s
18-
password=secret
18+
password=%(ENV_SE_SUPERVISORD_UNIX_SERVER_PASSWORD)s
1919

2020
; the below section must remain in the config file for RPC
2121
; (supervisorctl/web interface) to work, additional interfaces may be
@@ -26,7 +26,7 @@ supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
2626
[supervisorctl]
2727
serverurl=unix:///tmp/supervisor.sock ; use a unix:// URL for a unix socket
2828
username=%(ENV_SEL_USER)s
29-
password=secret
29+
password=%(ENV_SE_SUPERVISORD_UNIX_SERVER_PASSWORD)s
3030

3131
[include]
3232
files = /etc/supervisor/conf.d/*.conf

0 commit comments

Comments
 (0)