aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/docker-compose.yaml.template21
-rw-r--r--templates/nginx/conf.d/root.conf.template5
2 files changed, 26 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
diff --git a/templates/nginx/conf.d/root.conf.template b/templates/nginx/conf.d/root.conf.template
index b5f12ef..93675ff 100644
--- a/templates/nginx/conf.d/root.conf.template
+++ b/templates/nginx/conf.d/root.conf.template
@@ -11,6 +11,11 @@ server {
proxy_pass http://2fauth:8000/;
}
+ location /git/ {
+ include common/proxy-common;
+ proxy_pass http://git-server:80;
+ }
+
location /_$CRUPEST_V2RAY_PATH {
if ($http_upgrade != "websocket") {
return 404;