From ad4cadf769817d15a095b1296de19642a782ff6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E6=B3=BD?= Date: Wed, 4 Oct 2023 14:58:19 +0800 Subject: [PATCH] fix testData --- docker-compose.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 docker-compose.yml diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..99383cc --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,29 @@ +version: "3.3" + +services: + + traefik: + image: "traefik:v2.10" + container_name: "traefik" + command: + #- "--log.level=DEBUG" + - "--api.insecure=true" + - "--providers.docker=true" + - "--entrypoints.web.address=:80" + - "--experimental.plugins.session-max-age.modulename=github.com/longbridgeapp/traefik-session-max-age" + - "--experimental.plugins.session-max-age.version=v0.1.0" + ports: + - "80:80" + - "8080:8080" + volumes: + - "/var/run/docker.sock:/var/run/docker.sock:ro" + whoami: + image: "traefik/whoami" + container_name: "simple-service" + labels: + - "traefik.enable=true" + - "traefik.http.routers.whoami.rule=Host(`whoami.localhost`)" + - "traefik.http.routers.whoami.entrypoints=web" + - "traefik.http.routers.whoami.middlewares=session-max-age@docker" + - "traefik.http.middlewares.session-max-age.cookieName=_traefik_session" + - "traefik.http.middlewares.session-max-age.maxAge=10000000"