Template
1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo synced 2024-11-28 04:36:11 +01:00
forgejo/docker
Giteabot d713cf6150
Fix WORK_DIR for docker (root) image (#25738) (#25811)
Backport #25738 by @wxiaoguang

Fix #25726 

#17846 chose an incorrect WORK_DIR path for docker root image.

Gitea's work-path was already used as the base path for various paths
(like AppDataPath), so, the work-path should be mounted to a volume in a
docker image.

Now, for docker root image, it's unavoidable to mix the
WorkPath/CustomPath/AppDataPath in the same directory ("/data/gitea"),
because some of them have already been mixed.

Some directories in the screenshot are for "CustomPath" , while others
are for "AppDataPath", due to the technical debts in old code:

```
CUSTOM_PATH="/data/gitea"
APP_DATA_PATH = /data/gitea
```

<details>


![image](https://github.com/go-gitea/gitea/assets/2114189/9f0648ac-f731-4a08-9f26-1af01a1824b1)

</details>


This PR is breaking but this is the only way at the moment to avoid
users losing their data accidently

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2023-07-10 10:54:16 +02:00
..
root Fix WORK_DIR for docker (root) image (#25738) (#25811) 2023-07-10 10:54:16 +02:00
rootless Rootless Docker - Mistake with the repo-avatars parent folder name (#22637) 2023-01-31 22:42:48 +00:00
manifest.rootless.tmpl Unify nightly naming across binaries and docker images (#24116) 2023-04-24 23:43:19 +08:00
manifest.tmpl Unify nightly naming across binaries and docker images (#24116) 2023-04-24 23:43:19 +08:00
README.md Fix typo in README.md (#12369) 2020-07-29 09:29:51 -05:00

Gitea - Docker

Dockerfile is found in root of repository.

Docker image can be found on docker hub

Documentation on using docker image can be found on Gitea Docs site