From 25d623ef924708c5aeab8a332ea6b8047ac7d315 Mon Sep 17 00:00:00 2001 From: Mikucat Date: Sat, 3 Feb 2024 23:58:37 +0800 Subject: [PATCH] feat: v1.6.0 --- backup/db_backup.sh | 2 +- docker-compose.yml | 11 ++++------- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/backup/db_backup.sh b/backup/db_backup.sh index f61c0fc..6c4a502 100644 --- a/backup/db_backup.sh +++ b/backup/db_backup.sh @@ -1 +1 @@ -docker exec -it oj-postgres pg_dumpall -c -U onlinejudge > db_backup_`date +%Y_%m_%d"_"%H_%M_%S`.sql +docker compose exec -it oj-postgres pg_dumpall -c -U onlinejudge > db_backup_`date +%Y_%m_%d"_"%H_%M_%S`.sql diff --git a/docker-compose.yml b/docker-compose.yml index 9846b3c..bb29547 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -3,14 +3,12 @@ services: oj-redis: image: redis:4.0-alpine - container_name: oj-redis restart: always volumes: - ./data/redis:/data oj-postgres: image: postgres:10-alpine - container_name: oj-postgres restart: always volumes: - ./data/postgres:/var/lib/postgresql/data @@ -19,9 +17,8 @@ services: - POSTGRES_USER=onlinejudge - POSTGRES_PASSWORD=onlinejudge - judge-server: - image: registry.cn-hangzhou.aliyuncs.com/onlinejudge/judge_server - container_name: judge-server + oj-judge: + image: ghcr.io/qingdaou/oj-judge:1.6.0 restart: always read_only: true cap_drop: @@ -38,13 +35,13 @@ services: - ./data/judge_server/log:/log - ./data/judge_server/run:/judger environment: - - SERVICE_URL=http://judge-server:8080 + - SERVICE_URL=http://oj-judge:8080 - BACKEND_URL=http://oj-backend:8000/api/judge_server_heartbeat/ - TOKEN=CHANGE_THIS # - judger_debug=1 oj-backend: - image: registry.cn-hangzhou.aliyuncs.com/onlinejudge/oj_backend + image: ghcr.io/qingdaou/oj-backend:1.6.0 container_name: oj-backend restart: always depends_on: