Use the new rootless custom config/volumes config
continuous-integration/drone/push Build is failing Details

See https://docs.gitea.io/en-us/install-with-docker-rootless/.
This commit is contained in:
decentral1se 2021-04-13 16:52:10 +02:00
parent 3e5ecf48a9
commit 5bf65cb7b6
No known key found for this signature in database
GPG Key ID: 92DAD76BD9567B8A
1 changed files with 5 additions and 3 deletions

View File

@ -4,7 +4,7 @@ services:
image: "gitea/gitea:1.14.0-rootless" image: "gitea/gitea:1.14.0-rootless"
configs: configs:
- source: app_ini - source: app_ini
target: /data/gitea/conf/app.ini target: /etc/gitea/app.ini
secrets: secrets:
- db_password - db_password
- internal_token - internal_token
@ -25,7 +25,8 @@ services:
- GITEA_ENABLE_OPENID_SIGNUP - GITEA_ENABLE_OPENID_SIGNUP
- GITEA_SSH_PORT - GITEA_SSH_PORT
volumes: volumes:
- "git:/data" - data:/var/lib/gitea
- config:/etc/gitea
- "/etc/timezone:/etc/timezone:ro" - "/etc/timezone:/etc/timezone:ro"
- "/etc/localtime:/etc/localtime:ro" - "/etc/localtime:/etc/localtime:ro"
networks: networks:
@ -95,5 +96,6 @@ secrets:
name: ${STACK_NAME}_secret_key_${SECRET_SECRET_KEY_VERSION} name: ${STACK_NAME}_secret_key_${SECRET_SECRET_KEY_VERSION}
external: true external: true
volumes: volumes:
git: data:
config:
mariadb: mariadb: