Skip to content

Docker: Replace static value by env variable in Supervisord config #2762

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 8, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ ENV SE_BIND_HOST="false" \
SE_SUPERVISORD_PID_FILE="/tmp/supervisord.pid" \
SE_SUPERVISORD_AUTO_RESTART="true" \
SE_SUPERVISORD_START_RETRIES="5" \
SE_SUPERVISORD_UNIX_SERVER_PASSWORD="secret" \
SE_LOG_TIMESTAMP_FORMAT="%Y-%m-%d %H:%M:%S,%3N" \
SE_LOG_LEVEL="INFO" \
SE_HTTP_LOGS="false" \
Expand Down
4 changes: 2 additions & 2 deletions Base/supervisord.conf
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ minprocs=200 ; (min. avail process descriptors;
file=/tmp/supervisor.sock ; (the path to the socket file)
chmod=0700
username=%(ENV_SEL_USER)s
password=secret
password=%(ENV_SE_SUPERVISORD_UNIX_SERVER_PASSWORD)s

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

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