diff --git a/traefik/config/docker_labels.yml b/traefik/config/docker_labels.yml new file mode 100644 index 0000000..0d95dc3 --- /dev/null +++ b/traefik/config/docker_labels.yml @@ -0,0 +1,17 @@ + labels: + - "traefik.enable=true" + - "traefik.http.routers.homarr.entrypoints=http, https" + - "traefik.http.routers.homarr.rule=Host(`homarr.example.com`)" + - "traefik.http.routers.homarr.tls=true" + - "traefik.http.routers.homarr.tls.certresolver=production" + - "traefik.docker.network=traefik_traefik" + networks: + - traefik + - memos + +networks: + homarr: + external: false + traefik: + name: traefik_traefik + external: true \ No newline at end of file diff --git a/traefik/docker-compose.yml b/traefik/docker-compose.yml index b325214..a720151 100644 --- a/traefik/docker-compose.yml +++ b/traefik/docker-compose.yml @@ -18,6 +18,5 @@ services: networks: traefik: - name: traefik_default - driver: bridge + # Network name for other compose files: traefik_traefik