Skip to content

Commit

Permalink
update traefik configs
Browse files Browse the repository at this point in the history
Signed-off-by: Jason Cameron <git@jasoncameron.dev>
  • Loading branch information
JasonLovesDoggo committed Sep 22, 2024
1 parent 1c6cd63 commit b5b1dd2
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions dmoj/docker-stack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -198,16 +198,26 @@ services:
delay: 24h

traefik:
image: traefik:v3.1
image: traefik:v3
command:
- "--providers.docker.swarmMode=true"
- "--providers.docker.exposedbydefault=false"
- "--docker=true"
- "--docker.swarmMode=true"
- "--docker.exposedbydefault=false"
- "--docker.network=wlmoj_judge"
- "--entrypoints.judge.address=:9999"
networks:
- judge
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
deploy:
placement:
constraints: [node.role == manager]
constraints:
- node.role == manager
labels:
- "traefik.enable=true"
- "traefik.http.routers.traefik.rule=Host(`traefik.local`)"
- "traefik.http.routers.traefik.service=api@internal"
- "traefik.http.routers.traefik.entrypoints=judge"

networks:
site:
Expand Down

0 comments on commit b5b1dd2

Please sign in to comment.