From 5dd58ba2618fbd4d3189ddaa9dcc19cafe72fb9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=BC=D0=B8=D1=82=D1=80=D0=B8=D0=B9=20=D0=9A=D0=B0?= =?UTF-8?q?=D1=80=D0=B8=D1=85?= Date: Sun, 27 Aug 2017 23:12:29 +0300 Subject: [PATCH] Gogs: Fix data persistence Gogs stores all git repositories in /data/git/gogs-repositories, so they are lost after each restart. This results in error 500 when you try to open the repository. Also you can find generated SSH keys in /data/ssh that are being lost too. This commit changes the gogs-data volume to point to /data to achieve data persistence and to avoid creation of dangling volumes. --- templates/gogs/0/docker-compose.yml.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/gogs/0/docker-compose.yml.tpl b/templates/gogs/0/docker-compose.yml.tpl index 408f704..ecb7c97 100644 --- a/templates/gogs/0/docker-compose.yml.tpl +++ b/templates/gogs/0/docker-compose.yml.tpl @@ -3,7 +3,7 @@ services: gogs: image: gogs/gogs:0.11.19 volumes: - - gogs-data:/data/gogs + - gogs-data:/data {{- if ne .Values.db_link ""}} external_links: - ${db_link}:db