mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-27 10:18:54 +00:00
Allow RELEASE_NAME to be overridden in environment (#1087)
RELEASE_NAME was locked to a static value which prevented multiple instances of Firezone from running in the same network namespace (i.e. using net=host in a container). This change uses the value of the RELEASE_NAME environment variable and defaults to the current static value if not set.
This commit is contained in:
@@ -15,7 +15,10 @@
|
||||
# the one below (my_app@127.0.0.1), you need to also uncomment the
|
||||
# RELEASE_DISTRIBUTION variable below. Must be "sname", "name" or "none".
|
||||
export RELEASE_DISTRIBUTION=name
|
||||
export RELEASE_NODE=<%= @release.name %>@127.0.0.1
|
||||
# RELEASE_NAME is guaranteed to be set by the start script and defaults to 'firezone'
|
||||
# set RELEASE_NAME in the environment to a unique value when running multiple instances
|
||||
# in the same network namespace (i.e. with host networking in Podman)
|
||||
export RELEASE_NODE=$RELEASE_NAME@127.0.0.1
|
||||
|
||||
# Choices here are 'interactive' and 'embedded'. 'interactive' boots faster which
|
||||
# prevents some runit process management edge cases at the expense of the application
|
||||
|
||||
Reference in New Issue
Block a user