-
make a directories and download the compose file and setup script:
mkdir -p /tmp/docker-demo/complex curl -so /tmp/docker-demo/complex/compose.yml https://gist.githubusercontent.com/dovholuknf/6ce8c3cfd47ae60a0aaabdc0bbd6c1b8/raw/53520db4c16d034d99364f946244c300b2acd8d9/ziti-compose.yml curl -so /tmp/docker-demo/complex/.env https://get.openziti.io/dock/.env mkdir -p /tmp/docker-demo/zitigreen curl -so /tmp/docker-demo/zitigreen/compose.yml https://gist.githubusercontent.com/dovholuknf/be7bdeb1f000e0448541331fb623f265/raw/596cfedba2fb04a4a6fe1d3eb82031d6c93d87b5/zitigreen-compose.yml curl -so /tmp/docker-demo/zitigreen/configure-ziti.sh https://gist.githubusercontent.com/dovholuknf/3ad20ec07f05ae30de2bb7092bde40cd/raw/291bf526ddf343e63db2d3a909d876061a48c5de/zitigreen-configure-ziti.sh
-
update the .env
sed -i 's/ZITI_PWD=/ZITI_PWD=admin/g' /tmp/docker-demo/complex/.env grep ZITI_PWD /tmp/docker-demo/complex/.env
(make sure the replace worked. probably doesn't work on macOS if not, update to ZITI_PWD=admin)
-
edit compose file
vi /tmp/docker-demo/complex/compose.yml
** add zitigreen alias to ziti-edge-router ** add zitigreen to ziti-router ** add zitigreen external network
-
create the docker network
docker network create zitigreen
-
start the compose file
docker compose -f /tmp/docker-demo/complex/compose.yml up
-
inspect the differneces between the original and gist
curl -so /tmp/docker-demo/complex/original.yml https://get.openziti.io/dock/docker-compose.yml diff /tmp/docker-demo/complex/original.yml /tmp/docker-demo/complex/compose.yml
-
execute the configure-ziti.sh script
bash /tmp/docker-demo/zitigreen/configure-ziti.sh
-
recreate the docker env/start the green docker compose up
docker compose -f /tmp/docker-demo/zitigreen/compose.yml down -v docker compose -f /tmp/docker-demo/zitigreen/compose.yml up
docker compose -f /tmp/docker-demo/zitigreen/compose.yml down -v
docker compose -f /tmp/docker-demo/complex/compose.yml down -v
docker network rm zitigreen
rm -r "/tmp/docker-demo"