Add prefix to drone server and runner containers

This commit is contained in:
Francesco Antognazza 2023-02-07 14:06:16 +01:00
parent 3ce0692d87
commit 5d5d05f055
2 changed files with 5 additions and 3 deletions

View File

@ -50,11 +50,12 @@
io.containers.autoupdate: "registry" io.containers.autoupdate: "registry"
traefik.enable: "true" traefik.enable: "true"
traefik.http.routers.drone-runner.entrypoints: "https" traefik.http.routers.drone-runner.entrypoints: "https"
traefik.http.routers.drone-runner.rule: "PathPrefix(`/drone-runner`)" traefik.http.routers.drone-runner.rule: "PathPrefix(`/runner`)"
traefik.http.routers.drone-runner.tls: "true" traefik.http.routers.drone-runner.tls: "true"
traefik.http.routers.drone-runner.tls.certresolver: "wildcard" traefik.http.routers.drone-runner.tls.certresolver: "wildcard"
traefik.http.routers.drone-runner.service: "drone-runner" traefik.http.routers.drone-runner.service: "drone-runner"
traefik.http.routers.drone-runner.middlewares: "authelia@file" traefik.http.routers.drone-runner.middlewares: "drone-runner-prefixstrip@docker"
traefik.http.middlewares.drone-runner-prefixstrip.stripprefix.prefixes: "/runner"
traefik.http.services.drone-runner.loadbalancer.server.port: "3000" traefik.http.services.drone-runner.loadbalancer.server.port: "3000"
traefik.docker.network: "traefik-drone-runner" traefik.docker.network: "traefik-drone-runner"
env: env:

View File

@ -52,7 +52,8 @@
traefik.http.routers.drone-server.tls: "true" traefik.http.routers.drone-server.tls: "true"
traefik.http.routers.drone-server.tls.certresolver: "wildcard" traefik.http.routers.drone-server.tls.certresolver: "wildcard"
traefik.http.routers.drone-server.service: "drone-server" traefik.http.routers.drone-server.service: "drone-server"
traefik.http.routers.drone-server.middlewares: "authelia@file" traefik.http.routers.drone-server.middlewares: "drone-server-prefixstrip@docker"
traefik.http.middlewares.drone-server-prefixstrip.stripprefix.prefixes: "/drone"
traefik.http.services.drone-server.loadbalancer.server.port: "80" traefik.http.services.drone-server.loadbalancer.server.port: "80"
traefik.docker.network: "traefik-drone" traefik.docker.network: "traefik-drone"
env: env: