Skip to content
Snippets Groups Projects
Commit 1f280379 authored by Elian Loraux's avatar Elian Loraux
Browse files

traefik v3

parent 8f7ac516
No related branches found
No related tags found
No related merge requests found
...@@ -5,7 +5,10 @@ COMPOSE_FILE=docker-compose.yml:traefik.yml ...@@ -5,7 +5,10 @@ COMPOSE_FILE=docker-compose.yml:traefik.yml
# COMPOSE_FILE=docker-compose.yml:ports.yml:dev.yml # COMPOSE_FILE=docker-compose.yml:ports.yml:dev.yml
# Host and Name for traefik # Host and Name for traefik
# with traefik v2
HOST= HOST=
# with traefik v3 une Host(`FQDN`) || Host(`FQDN`) for mutlihost
# HOST=Host(`${HOST}`)
NAME=peertube NAME=peertube
# Peertune secret # Peertune secret
......
version: "3.3"
services:
peertube:
networks:
- traefik
- default
labels:
- "traefik.enable=true"
- "traefik.docker.network=traefik"
- "traefik.http.routers.${NAME}.rule=${HOST}"
- "traefik.http.routers.${NAME}.tls.certresolver=myresolver"
- "traefik.http.routers.${NAME}.entrypoints=web,websecure"
- "traefik.http.routers.${NAME}.middlewares=hardening@docker"
- "traefik.http.services.${NAME}.loadbalancer.server.port=9000"
networks:
traefik:
external: true
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment