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.
This commit is contained in:
Дмитрий Карих 2017-08-27 23:12:29 +03:00
parent d1748c16c9
commit 5dd58ba261

View File

@ -3,7 +3,7 @@ services:
gogs: gogs:
image: gogs/gogs:0.11.19 image: gogs/gogs:0.11.19
volumes: volumes:
- gogs-data:/data/gogs - gogs-data:/data
{{- if ne .Values.db_link ""}} {{- if ne .Values.db_link ""}}
external_links: external_links:
- ${db_link}:db - ${db_link}:db