Skip to content

Commit

Permalink
Refine networks and allow judge to talk to bridged
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 7a4658d commit 7e7e8bb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion automation/add_judge.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,4 @@ docker service create \
--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 "site" "$JUDGE_NAME" "$JUDGE_AUTH_KEY"
run -p 9999 -c /judge.yml "bridged" "$JUDGE_NAME" "$JUDGE_AUTH_KEY"
2 changes: 1 addition & 1 deletion dmoj/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ services:
- ${GITHUB_WORKSPACE}/dmoj/repo/:/site/
working_dir: /site/
env_file: [ environment/mysql.env, environment/site.env ]
networks: [ site, nginx, db ]
networks: [ site, db ]
ports:
- "9999:9999"
depends_on: [ base, db, redis ]
Expand Down
2 changes: 1 addition & 1 deletion dmoj/docker-stack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ services:
networks:
- site
- db
- judge
deploy:
replicas: 1
placement:
Expand Down Expand Up @@ -98,6 +97,7 @@ services:
env_file: [ environment/mysql.env, environment/site.env ]
networks:
- site
- judge
- db
ports:
- "9999:9999"
Expand Down

0 comments on commit 7e7e8bb

Please sign in to comment.