diff --git a/templates/meshviewer/0/docker-compose.yml b/templates/meshviewer/0/docker-compose.yml index 0c734ab..2a1bc44 100644 --- a/templates/meshviewer/0/docker-compose.yml +++ b/templates/meshviewer/0/docker-compose.yml @@ -49,6 +49,12 @@ services: labels: io.rancher.container.hostname_override: container_name + redirect-https: + image: hoffmannhosting/docker-nginx-https-redirect + labels: + io.rancher.container.hostname_override: container_name + service: http + letsencrypt-map: image: janeczku/rancher-letsencrypt:v0.5.0 environment: diff --git a/templates/meshviewer/0/rancher-compose.yml b/templates/meshviewer/0/rancher-compose.yml index 89f3ea1..a72ef99 100644 --- a/templates/meshviewer/0/rancher-compose.yml +++ b/templates/meshviewer/0/rancher-compose.yml @@ -60,6 +60,16 @@ services: influxdb: scale: 1 start_on_create: true + lb_config: + port_rules: + - target_port: 80 + hostname: ${DOMAIN} + - target_port: 80 + hostname: ${GRAFANA_DOMAIN} + + redirect-https: + scale: 1 + start_on_create: true letsencrypt-map: scale: 1