diff --git a/containers/comprehensive_rust.fish b/containers/comprehensive_rust.fish new file mode 100755 index 0000000..9ba57ad --- /dev/null +++ b/containers/comprehensive_rust.fish @@ -0,0 +1,15 @@ +#!/usr/bin/env fish + +set -l container_name comprehensive-rust + +mkdir -p ~/volumes/$container_name + +mdbook build -d ~/volumes/$container_name ~/code/comprehensive-rust; or return 1 + +podman-default-create \ + $container_name \ + --network traefik \ + -v ~/sync/volumes/nginx.conf:/etc/nginx/nginx.conf:z,ro \ + -v ~/volumes/$container_name:/usr/share/nginx/html:Z,ro \ + --label "io.containers.autoupdate=registry" \ + docker.io/library/nginx:alpine diff --git a/volumes/traefik/dynamic.yml b/volumes/traefik/dynamic.yml index 02c39be..cf6a580 100644 --- a/volumes/traefik/dynamic.yml +++ b/volumes/traefik/dynamic.yml @@ -115,6 +115,9 @@ http: to_dev_tools: rule: Host(`dev-tools.mo8it.com`) service: dev_tools + to_comprehensive_rust: + rule: Host(`comprehensive-rust.mo8it.com`) + service: comprehensive_rust to_collective_score: rule: Host(`collective-score.mo8it.com`) service: collective_score @@ -207,6 +210,10 @@ http: loadBalancer: servers: - url: http://dev-tools + comprehensive_rust: + loadBalancer: + servers: + - url: http://comprehensive-rust collective_score: loadBalancer: servers: