Skip to content

Commit

Permalink
fix testData
Browse files Browse the repository at this point in the history
  • Loading branch information
白泽 committed Oct 4, 2023
1 parent a8540f3 commit ad4cadf
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit ad4cadf

Please sign in to comment.