From 5bf65cb7b66f3c5ad6fd45958ce453887d77fa1c Mon Sep 17 00:00:00 2001 From: decentral1se Date: Tue, 13 Apr 2021 16:52:10 +0200 Subject: [PATCH] Use the new rootless custom config/volumes config See https://docs.gitea.io/en-us/install-with-docker-rootless/. --- compose.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/compose.yml b/compose.yml index 069eeaf..ebafd14 100644 --- a/compose.yml +++ b/compose.yml @@ -4,7 +4,7 @@ services: image: "gitea/gitea:1.14.0-rootless" configs: - source: app_ini - target: /data/gitea/conf/app.ini + target: /etc/gitea/app.ini secrets: - db_password - internal_token @@ -25,7 +25,8 @@ services: - GITEA_ENABLE_OPENID_SIGNUP - GITEA_SSH_PORT volumes: - - "git:/data" + - data:/var/lib/gitea + - config:/etc/gitea - "/etc/timezone:/etc/timezone:ro" - "/etc/localtime:/etc/localtime:ro" networks: @@ -95,5 +96,6 @@ secrets: name: ${STACK_NAME}_secret_key_${SECRET_SECRET_KEY_VERSION} external: true volumes: - git: + data: + config: mariadb: