Skip to content

Commit

Permalink
add DNS alias for quickstart container
Browse files Browse the repository at this point in the history
  • Loading branch information
qrkourier committed Dec 13, 2023
1 parent 0c2daeb commit 89759be
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions quickstart/docker/minimal/compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ services:
context: ${ZITI_SRC_ROOT:-../../../}
dockerfile: ./quickstart/docker/minimal/Dockerfile
args: {}
networks:
quickstart:
# this allows other containers to use the external DNS name to reach the quickstart container inside the docker
# network
aliases:
- ${EXTERNAL_DNS}
entrypoint:
- bash
- -euc
Expand All @@ -44,3 +50,8 @@ services:
ports:
- ${ZITI_INTERFACE:-0.0.0.0}:${ZITI_CTRL_EDGE_ADVERTISED_PORT:-1280}:${ZITI_CTRL_EDGE_ADVERTISED_PORT:-1280}
- ${ZITI_INTERFACE:-0.0.0.0}:${ZITI_ROUTER_PORT:-3022}:${ZITI_ROUTER_PORT:-3022}

# define a custom network so that we can also define a DNS alias for the quickstart container
networks:
quickstart:
driver: bridge

0 comments on commit 89759be

Please sign in to comment.