@@ -4,6 +4,17 @@ We are going to build a small web server now in a Singularity container.
The web server to be used is Caddy. The base Linux is again the small
Alpine.
Note that the Caddy web server needs to use TCP port 8080 inside the container. Port 80 would only work, if you run the container as root. Ports below 1024 are restricted. Check the Caddyfile. You can use also other ports, e.g. 8088.
Note that the HandsOn VM needs to have a firewall opening. (In case of Docker the container engine opens the firewall for you). For Singularity we do it ourselves:
From a web browser can now reach your web server under [http://192.168.56.104:8080/](http://192.168.56.104:8080/). The IP address might be different. Note the port **8080** has to match the Caddyfile.
You can connect to the container instance like this