Skip to content

Commit

Permalink
Downgrade to taefik 2.10
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 23, 2024
1 parent 29485b9 commit f4cecb5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 15 deletions.
4 changes: 2 additions & 2 deletions automation/add_judge.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ docker service create \
--replicas 1 \
--constraint "$CONSTRAINT" \
--network wlmoj_judge \
--cap-add SYS_PTRACE \
--label "traefik.enable=true" \
--label "traefik.http.routers.${JUDGE_NAME}.rule=Host(\`judge\`)" \
--label "traefik.http.routers.judge.rule=Host(\`judge\`)" \
--label "traefik.http.services.${JUDGE_NAME}.loadbalancer.server.port=9999" \
--cap-add SYS_PTRACE \
--mount type=bind,src=/var/share/problems/,dst=/problems/ \
ghcr.io/mcpt/wlmoj-judge:latest \
run -p 9999 -c /judge.yml "bridged" "$JUDGE_NAME" "$JUDGE_AUTH_KEY"
24 changes: 11 additions & 13 deletions dmoj/docker-stack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -198,26 +198,24 @@ services:
delay: 24h

traefik:
image: traefik:v3
image: traefik:v2.10
command:
- "--docker=true"
- "--swarm=true"
- "--docker.exposedbydefault=false"
- "--docker.network=wlmoj_judge"
- "--entrypoints.judge.address=:9999"
- "--providers.docker=true"
- "--providers.docker.swarmMode=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.internal.address=:9999"
networks:
- judge
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- wlmoj_judge
deploy:
replicas: 1
placement:
constraints:
- node.role == manager
- node.role == manager # Traefik should run on a manager node
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"
- "traefik.http.services.api.loadbalancer.server.port=8080"
volumes:
- /var/run/docker.sock:/var/run/docker.sock

networks:
site:
Expand Down

0 comments on commit f4cecb5

Please sign in to comment.