This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/bash | |
# first upload (might not work) | |
# make sure your vm has a second disk /dev/sdb that is completely empty (used for the zfs pool) | |
# you need some free ip range in your environment eg 192.168.0.40 is your server, then supply 192.168.0.41 for first and 192.168.0.49 for last if all the ips in between are free | |
ZFSDISK=/dev/sdb | |
ADMINNAME=admin | |
KASTENTOKENAUTH=0 | |
if [ ! $(ls $ZFSDISK) ];then echo "ZFSDisk $ZFSDISK not found";exit -1 ;fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--label "traefik.enable=true" \ | |
--label "traefik.protocol=http" \ | |
--label "traefik.first.port=80" \ | |
--label "traefik.first.frontend.rule=Host:web1.example.com" \ | |
--label "traefik.second.port=8080" \ | |
--label "traefik.second.frontend.rule=Host:web2.example.com" \ | |
Above labels will allow us to forward web1.example.com to docker container port 80 and web2.example.com to same container's port 8080 |