aboutsummaryrefslogtreecommitdiff
path: root/templates/docker-compose.yaml.template
diff options
context:
space:
mode:
authorYuqian Yang <crupest@crupest.life>2025-02-19 01:55:29 +0800
committerYuqian Yang <crupest@crupest.life>2025-02-19 01:57:24 +0800
commit29bf91b8f57ec28492bb882d9f4d38fb12c9519a (patch)
tree8eb12e9eca946a66079ffa07369949394faaeefe /templates/docker-compose.yaml.template
parentac21570aa3468a316b747cfbd8241ccdfe6039b3 (diff)
downloadcrupest-29bf91b8f57ec28492bb882d9f4d38fb12c9519a.tar.gz
crupest-29bf91b8f57ec28492bb882d9f4d38fb12c9519a.tar.bz2
crupest-29bf91b8f57ec28492bb882d9f4d38fb12c9519a.zip
feat(git-server): add git server.
Diffstat (limited to 'templates/docker-compose.yaml.template')
-rw-r--r--templates/docker-compose.yaml.template21
1 files changed, 21 insertions, 0 deletions
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