update docker compose to work better when changing the advertised name

This commit is contained in:
dovholuknf
2023-01-03 11:31:15 -05:00
parent 4deb1f31b7
commit 340dccf0d8
2 changed files with 5 additions and 3 deletions
+3 -2
View File
@@ -11,7 +11,8 @@ ZITI_EDGE_ROUTER_ENROLLMENT_DURATION=
## Additional variables to override.
#ZITI_EDGE_CONTROLLER_RAWNAME=some.other.name.com
#ZITI_EDGE_CTRL_ADVERTISED_HOST_PORT=some.other.name.com:1280
#ZITI_CTRL_ADVERTISED_ADDRESS=some.other.name.com
#ZITI_EDGE_CONTROLLER_HOSTNAME=some.other.name.com
#ZITI_CONTROLLER_HOSTNAME=some.other.name.com
#ZITI_EDGE_CONTROLLER_IP_OVERRIDE=20.20.20.20
#ZITI_CTRL_ADVERTISED_ADDRESS=some.other.name.com
#ZITI_CONTROLLER_HOSTNAME=some.other.name.com
#ZITI_CTRL_PORT=6262
+2 -1
View File
@@ -5,7 +5,8 @@ services:
env_file:
- ./.env
ports:
- "1280:1280"
- "${ZITI_EDGE_CONTROLLER_PORT}:${ZITI_EDGE_CONTROLLER_PORT}"
- "${ZITI_CTRL_PORT}:${ZITI_CTRL_PORT}"
environment:
- ZITI_EDGE_IDENTITY_ENROLLMENT_DURATION=${ZITI_EDGE_IDENTITY_ENROLLMENT_DURATION}
- ZITI_EDGE_ROUTER_ENROLLMENT_DURATION=${ZITI_EDGE_ROUTER_ENROLLMENT_DURATION}