diff --git a/docker-compose.yml b/docker-compose.yml index 366c6cf..22353bc 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -7,7 +7,13 @@ services: labels: - "traefik.enable=true" - "traefik.http.routers.rfunds.rule=Host(`rfunds.online`) || Host(`www.rfunds.online`)" + - "traefik.http.routers.rfunds.priority=120" - "traefik.http.services.rfunds.loadbalancer.server.port=3000" + # Wildcard router: any space subdomain routes to this app + - "traefik.http.routers.rfunds-spaces.rule=HostRegexp(`{space:[a-z0-9-]+}.rfunds.online`)" + - "traefik.http.routers.rfunds-spaces.priority=100" + - "traefik.http.routers.rfunds-spaces.entrypoints=web" + - "traefik.http.routers.rfunds-spaces.service=rfunds" healthcheck: test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://127.0.0.1:3000/"] interval: 30s