From 533a6f8faa938aad8b1fc9ca3cdc1328de96ab16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20M=C3=B6hlmann?= Date: Mon, 17 Dec 2018 00:12:21 +0200 Subject: [PATCH] Add deploy settings for server --- docs/.env | 2 ++ docs/docker-compose.yml | 13 ++++++++++--- 2 files changed, 12 insertions(+), 3 deletions(-) create mode 100644 docs/.env diff --git a/docs/.env b/docs/.env new file mode 100644 index 00000000..6da284ee --- /dev/null +++ b/docs/.env @@ -0,0 +1,2 @@ +# Hostname passed to Traefik +ADDRESS=docs.mailu.io diff --git a/docs/docker-compose.yml b/docs/docker-compose.yml index 0caaa7a4..b7026564 100644 --- a/docs/docker-compose.yml +++ b/docs/docker-compose.yml @@ -4,18 +4,25 @@ version: '3' services: docs_master: image: mailu/docs:master + networks: + - web labels: - traefik.enable=true - traefik.port=80 - - traefik.main.frontend.rule=Host:${hostname};PathPrefix:/master/ + - traefik.main.frontend.rule=Host:${ADDRESS};PathPrefix:/master/ docs_15: image: mailu/docs:1.5 + networks: + - web labels: - traefik.enable=true - traefik.port=80 - traefik.root.frontend.redirect.regex=.* - traefik.root.frontend.redirect.replacement=/1.5/ - - traefik.root.frontend.rule=Host:${hostname};PathPrefix:/ - - traefik.main.frontend.rule=Host:${hostname};PathPrefix:/1.5/ + - traefik.root.frontend.rule=Host:${ADDRESS};PathPrefix:/ + - traefik.main.frontend.rule=Host:${ADDRESS};PathPrefix:/1.5/ +networks: + web: + external: true