From 29bf91b8f57ec28492bb882d9f4d38fb12c9519a Mon Sep 17 00:00:00 2001 From: Yuqian Yang <crupest@crupest.life> Date: Wed, 19 Feb 2025 01:55:29 +0800 Subject: feat(git-server): add git server. --- templates/docker-compose.yaml.template | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'templates/docker-compose.yaml.template') diff --git a/templates/docker-compose.yaml.template b/templates/docker-compose.yaml.template index fdf0d11..124c9d5 100644 --- a/templates/docker-compose.yaml.template +++ b/templates/docker-compose.yaml.template @@ -139,6 +139,23 @@ services: - /etc/localtime:/etc/localtime:ro restart: on-failure:3 + git-server: + pull_policy: build + build: + context: ./docker/git-server + dockerfile: Dockerfile + secrets: + - "git-server" + pull: true + args: + - ROOT_URL=https://${CRUPEST_DOMAIN}/git + tags: + - "crupest/git-server:latest" + container_name: git-server + volumes: + - "./data/git:/git" + restart: on-failure:3 + roundcubemail: image: roundcube/roundcubemail:latest pull_policy: always @@ -184,3 +201,7 @@ services: volumes: blog-public: roundcubemail-temp: + +secrets: + git-server: + file: data/config -- cgit v1.2.3