mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-27 10:18:54 +00:00
Expose phoenix and Wireguard ports specified in configuration (#1372)
This commit is contained in:
@@ -35,19 +35,17 @@ services:
|
||||
|
||||
https:// {
|
||||
log
|
||||
reverse_proxy * firezone:13000
|
||||
tls internal {
|
||||
on_demand
|
||||
}
|
||||
reverse_proxy * 172.25.0.100:${PHOENIX_PORT:-13000}
|
||||
${TLS_OPTS:-}
|
||||
}
|
||||
EOF
|
||||
deploy:
|
||||
<<: *default-deploy
|
||||
|
||||
firezone:
|
||||
image: firezone/firezone
|
||||
image: firezone/firezone:${VERSION:-latest}
|
||||
ports:
|
||||
- 51820:51820/udp
|
||||
- ${WIREGUARD_PORT:-51820}:${WIREGUARD_PORT:-51820}/udp
|
||||
env_file:
|
||||
# This should contain a list of env vars for configuring Firezone.
|
||||
# See https://docs.firezone.dev/reference/env-vars for more info.
|
||||
|
||||
@@ -31,7 +31,7 @@ services:
|
||||
|
||||
https:// {
|
||||
log
|
||||
reverse_proxy * 172.25.0.100:13000
|
||||
reverse_proxy * 172.25.0.100:${PHOENIX_PORT:-13000}
|
||||
${TLS_OPTS:-}
|
||||
}
|
||||
EOF
|
||||
@@ -40,9 +40,9 @@ services:
|
||||
<<: *default-deploy
|
||||
|
||||
firezone:
|
||||
image: firezone/firezone
|
||||
image: firezone/firezone:${VERSION:-latest}
|
||||
ports:
|
||||
- 51820:51820/udp
|
||||
- ${WIREGUARD_PORT:-51820}:${WIREGUARD_PORT:-51820}/udp
|
||||
env_file:
|
||||
# This should contain a list of env vars for configuring Firezone.
|
||||
# See https://docs.firezone.dev/reference/env-vars for more info.
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
cat <<-EOF
|
||||
VERSION=latest
|
||||
EXTERNAL_URL=_CHANGE_ME_
|
||||
ADMIN_EMAIL=_CHANGE_ME_
|
||||
DEFAULT_ADMIN_PASSWORD=$(openssl rand -base64 12)
|
||||
|
||||
@@ -149,6 +149,9 @@ firezoneSetup() {
|
||||
echo "TELEMETRY_ENABLED=$telemEnabled" >> "$installDir/.env"
|
||||
echo "TID=$tid" >> "$installDir/.env"
|
||||
|
||||
LATEST_VERSION=$(curl -fsSL https://api.github.com/repos/firezone/firezone/releases/latest | grep -w tag_name | cut -d '"' -f 4)
|
||||
sed -i.bak "s~VERSION=.*~VERSION=${LATEST_VERSION}~" "$installDir/.env"
|
||||
|
||||
# XXX: This causes perms issues on macOS with postgres
|
||||
# echo "UID=$(id -u)" >> $installDir/.env
|
||||
# echo "GID=$(id -g)" >> $installDir/.env
|
||||
|
||||
Reference in New Issue
Block a user