You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/content/doc/installation/with-docker-rootless.en-us.md
+20-4
Original file line number
Diff line number
Diff line change
@@ -29,10 +29,16 @@ the official [install instructions](https://docs.docker.com/compose/install/).
29
29
30
30
The most simple setup just creates a volume and a network and starts the `gitea/gitea:latest-rootless`
31
31
image as a service. Since there is no database available, one can be initialized using SQLite3.
32
-
Create a directory for `data` and `config` then paste the following content into a file named `docker-compose.yml`.
33
-
Note that the volume should be owned by the user/group with the UID/GID specified in the config file. By default Gitea in docker will use uid:1000 gid:1000. If needed you can set ownership on those folders with the command: `sudo chown 1000:1000 config/ data/`
34
-
If you don't give the volume correct permissions, the container may not start.
35
-
For a stable release you could use `:latest-rootless`, `:1-rootless` or specify a certain release like `:{{< version >}}-rootless`, but if you'd like to use the latest development version then `:dev-rootless` would be an appropriate tag. If you'd like to run the latest commit from a release branch you can use the `:1.x-dev-rootless` tag, where x is the minor version of Gitea. (e.g. `:1.16-dev-rootless`)
32
+
33
+
Create a directory for `data` and `config`:
34
+
35
+
```sh
36
+
mkdir -p gitea/{data,config}
37
+
cd gitea
38
+
touch docker-compose.yml
39
+
```
40
+
41
+
Then paste the following content into a file named `docker-compose.yml`:
36
42
37
43
```yaml
38
44
version: "2"
@@ -51,6 +57,16 @@ services:
51
57
- "2222:2222"
52
58
```
53
59
60
+
Note that the volume should be owned by the user/group with the UID/GID specified in the config file. By default Gitea in docker will use uid:1000 gid:1000. If needed you can set ownership on those folders with the command:
61
+
62
+
```sh
63
+
sudo chown 1000:1000 config/ data/
64
+
```
65
+
66
+
> If you don't give the volume correct permissions, the container may not start.
67
+
68
+
For a stable release you could use `:latest-rootless`, `:1-rootless` or specify a certain release like `:{{< version >}}-rootless`, but if you'd like to use the latest development version then `:dev-rootless` would be an appropriate tag. If you'd like to run the latest commit from a release branch you can use the `:1.x-dev-rootless` tag, where x is the minor version of Gitea. (e.g. `:1.16-dev-rootless`)
69
+
54
70
## Custom port
55
71
56
72
To bind the integrated ssh and the webserver on a different port, adjust
0 commit comments