From a99cbd7086af732a4db3e884dc39e98a35d06f1b Mon Sep 17 00:00:00 2001 From: root Date: Sat, 18 Feb 2023 22:59:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20'gitbucket'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gitbucket | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 gitbucket diff --git a/gitbucket b/gitbucket new file mode 100644 index 0000000..0abec52 --- /dev/null +++ b/gitbucket @@ -0,0 +1,24 @@ +version: '2.1' +services: + db: + image: postgres:15-alpine + restart: always + environment: + - POSTGRES_PASSWORD=git-pass + - POSTGRES_USER=git + - POSTGRES_DB=git + volumes: + - ./postgres:/var/lib/postgresql/data + + git: + image: gitbucket/gitbucket + restart: always + environment: + - GITBUCKET_DB_USER=git + - GITBUCKET_DB_PASSWORD=git-pass + - GITBUCKET_DB_URL=jdbc:postgresql://db/git + volumes: + - ./data:/gitbucket + ports: + - "127.0.0.1:2080:8080" + - "29418:29418" \ No newline at end of file