Skip to content
Snippets Groups Projects
Verified Commit c163818b authored by David Beniamine's avatar David Beniamine
Browse files

Traefik v3 Compatibility

parent 91d38a11
No related branches found
No related tags found
No related merge requests found
Pipeline #2061 passed
...@@ -31,8 +31,10 @@ APP_SECRET=55ba185719845f708d18a2739b07c44a ...@@ -31,8 +31,10 @@ APP_SECRET=55ba185719845f708d18a2739b07c44a
DATABASE_URL="mysql://rekallfrwsmember:sm4SyZVPu6wpjZfg@mysql:3306/rekallfrwsmember?serverVersion=5.6&charset=utf8" DATABASE_URL="mysql://rekallfrwsmember:sm4SyZVPu6wpjZfg@mysql:3306/rekallfrwsmember?serverVersion=5.6&charset=utf8"
###< doctrine/doctrine-bundle ### ###< doctrine/doctrine-bundle ###
# Set the docker-compose to use # Set the docker-compose to use
# for production with a traefik frontend # for production with a traefik v2 frontend
# docker-compose.yml:traefik.yml # docker-compose.yml:traefik.yml
# for production with a traefik v3 frontend
# docker-compose.yml:traefikV3.yml
# for development purposes # for development purposes
# docker-compose.yml:dev.yml # docker-compose.yml:dev.yml
COMPOSE_FILE=docker-compose.yml COMPOSE_FILE=docker-compose.yml
...@@ -73,3 +75,7 @@ LEGACY_EXTERNAL_PREFIX=/legacy ...@@ -73,3 +75,7 @@ LEGACY_EXTERNAL_PREFIX=/legacy
MEMBER_URL_EXTERNAL=http://localhost:8081/ MEMBER_URL_EXTERNAL=http://localhost:8081/
FRONT_URL_EXTERNAL=http://localhost:8081/ FRONT_URL_EXTERNAL=http://localhost:8081/
LEGACY_PROJECT_DELETION_ENABLED=false LEGACY_PROJECT_DELETION_ENABLED=false
# With traefikV2
#HOST=`sub1.FQDN`,`sub2.FQDN`
# With traefikV3
HOSTS='Host(`sub1.FQDN`) || Host(`sub2.FQDN`)'
version: "3.4"
services:
memorekall-member:
networks:
- default
- legacy
- traefik
labels:
- "traefik.enable=true"
- "traefik.docker.network=traefik"
- "traefik.http.routers.${NAME}.rule=${HOSTS}"
- "traefik.http.routers.${NAME}.tls.certresolver=myresolver"
- "traefik.http.routers.${NAME}.entrypoints=web,websecure"
- "traefik.http.routers.${NAME}.middlewares=hardening@docker,xforwardedproto@docker,xforwardedport@docker"
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