0
0
Fork 0
mirror of https://codeberg.org/forgejo/docs.git synced 2024-11-21 17:36:59 -05:00

Update Docker installation instructions to use v8

This commit is contained in:
yonas 2024-09-06 21:32:52 +00:00 committed by Yonas
parent 182007a5a5
commit be2d4d2c8c
No known key found for this signature in database

View file

@ -6,14 +6,14 @@ license: 'CC-BY-SA-4.0'
Forgejo provides [container images](https://codeberg.org/forgejo/-/packages/container/forgejo/versions) for use with Docker or other containerization tools. Forgejo provides [container images](https://codeberg.org/forgejo/-/packages/container/forgejo/versions) for use with Docker or other containerization tools.
```shell ```shell
docker pull codeberg.org/forgejo/forgejo:7.0.3 docker pull codeberg.org/forgejo/forgejo:8
``` ```
If `codeberg.org` can not be accessed you can replace every mention of `codeberg.org` with `code.forgejo.org` to use our mirror. If `codeberg.org` can not be accessed you can replace every mention of `codeberg.org` with `code.forgejo.org` to use our mirror.
The **7** tag is set to be the latest minor release, starting with **7.0.x**. The **7** tag will then be equal to **7.0.4** when it is released and so on. The **7.0** tag is also set to be the latest patch version release. The **8** tag is set to be the latest minor release, starting with **8.0.x**. The **8** tag will then be equal to **8.0.4** when it is released and so on. The **8.0** tag is also set to be the latest patch version release.
Upgrading from **X** to **X+1** (for instance from **7** to **8**) requires a [manual operation and human verification](../upgrade/). However it is possible to use the **X** tag (for instance **7**) to get the latest minor release automatically. Upgrading from **X** to **X+1** (for instance from **7** to **8**) requires a [manual operation and human verification](../upgrade/). However it is possible to use the **X** tag (for instance **8**) to get the latest minor release automatically.
### Docker: ### Docker:
@ -26,7 +26,7 @@ networks:
services: services:
server: server:
image: codeberg.org/forgejo/forgejo:7 image: codeberg.org/forgejo/forgejo:8
container_name: forgejo container_name: forgejo
environment: environment:
- USER_UID=1000 - USER_UID=1000
@ -61,7 +61,7 @@ Save the following files in /etc/containers/systemd, as port 222 requires elevat
ContainerName=forgejo ContainerName=forgejo
Environment=USER_UID=1000 Environment=USER_UID=1000
Environment=USER_GID=1000 Environment=USER_GID=1000
Image=codeberg.org/forgejo/forgejo:7 Image=codeberg.org/forgejo/forgejo:8
Network=forgejo.network Network=forgejo.network
PublishPort=3000:3000 PublishPort=3000:3000
PublishPort=222:22 PublishPort=222:22
@ -140,7 +140,7 @@ networks:
services: services:
server: server:
image: codeberg.org/forgejo/forgejo:7 image: codeberg.org/forgejo/forgejo:8
container_name: forgejo container_name: forgejo
environment: environment:
- USER_UID=1000 - USER_UID=1000
@ -186,7 +186,7 @@ networks:
services: services:
server: server:
image: codeberg.org/forgejo/forgejo:7 image: codeberg.org/forgejo/forgejo:8
container_name: forgejo container_name: forgejo
environment: environment:
- USER_UID=1000 - USER_UID=1000
@ -284,8 +284,8 @@ networks:
services: services:
server: server:
- image: codeberg.org/forgejo/forgejo:7 - image: codeberg.org/forgejo/forgejo:8
+ image: codeberg.org/forgejo/forgejo:7-rootless + image: codeberg.org/forgejo/forgejo:8-rootless
container_name: forgejo container_name: forgejo
+ user: "1024:100" + user: "1024:100"
- environment: - environment: