Skip to content

Commit

Permalink
call the minimal quickstart the 'all-in-one quickstart'
Browse files Browse the repository at this point in the history
  • Loading branch information
qrkourier committed Jan 16, 2024
1 parent 6201652 commit 7a1bb9a
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 12 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,11 @@ services:
HOME: /persistent
# PFXLOG_NO_JSON: "true"
volumes:
- ./persistent:/persistent
quickstart:
# store the quickstart state in a named volume; you must comment the bind mount below, uncomment this named mount
- persistent:/persistent
# store the quickstart state on the Docker host in the same directory as this compose.yml file
# - ./persistent:/persistent
minimal:
depends_on:
initialize:
condition: service_completed_successfully
Expand All @@ -19,8 +22,8 @@ services:
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
minimal:
# this allows other containers to use the external DNS name to reach the minimal container inside the docker
# network
aliases:
- ${EXTERNAL_DNS:-null}
Expand All @@ -39,22 +42,20 @@ services:
HOME: /persistent
PFXLOG_NO_JSON: "${PFXLOG_NO_JSON:-true}"
volumes:
# store the quickstart state in a named volume; you must comment the bind mount below, uncomment this named mount
- persistent:/persistent
# store the quickstart state on the Docker host in the same directory as this compose.yml file
- ./persistent:/persistent
# store the quickstart state in a named volume; you must comment the bind mount above, uncomment the named mount
# below, and set permissions on the named volume if you choose this alternative, e.g.:
# docker compose run --entrypoint='' --user=0 quickstart chmod -Rc 1777 /persistent
# - persistent:/persistent
# - ./persistent:/persistent
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
# define a custom network so that we can also define a DNS alias for the minimal container
networks:
quickstart:
minimal:
driver: bridge

volumes:
# unused unless you choose to store the quickstart state in a named volume; see comment in quickstart service above
# unused unless you choose to store the minimal minimal state in a named volume; see comment in quickstart service above
persistent:
driver: local

0 comments on commit 7a1bb9a

Please sign in to comment.