From 0b3dd3c037f859a5af76a236cc7c2172b5cb36d3 Mon Sep 17 00:00:00 2001 From: Johan Janssens Date: Fri, 27 May 2022 23:23:00 +0200 Subject: [PATCH] #55 - Make http://localhost load dashboard --- docker-compose.yml | 2 +- sites/dashboard/config/apache/server.conf | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 sites/dashboard/config/apache/server.conf diff --git a/docker-compose.yml b/docker-compose.yml index 96dfe412..41b7bcb2 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -33,7 +33,7 @@ services: labels: - "traefik.enable=true" # Routers - - "traefik.http.routers.joomlatools-server.rule=HostRegexp(`{name:(.*)}.test`)" + - "traefik.http.routers.joomlatools-server.rule=HostRegexp(`{name:(.*)}.test`) || Host(`localhost`)" # Services - "traefik.http.services.joomlatools-server.loadbalancer.server.port=80" volumes: diff --git a/sites/dashboard/config/apache/server.conf b/sites/dashboard/config/apache/server.conf new file mode 100644 index 00000000..6035db44 --- /dev/null +++ b/sites/dashboard/config/apache/server.conf @@ -0,0 +1,19 @@ + + + DocumentRoot ${APP_ROOT}/sites/dashboard + + use vhost + use site + + + + + + use ssl default + + DocumentRoot ${APP_ROOT}/sites/dashboard + + use vhost + use site + + \ No newline at end of file