mirror of
https://codeberg.org/forgejo/docs.git
synced 2024-11-24 18:09:26 -05:00
updated installation-docker.md file with Podman instructions
This commit is contained in:
parent
000ca5ab42
commit
e2dd73e88b
1 changed files with 46 additions and 0 deletions
|
@ -15,6 +15,7 @@ The **7** tag is set to be the latest minor release, starting with **7.0.x**. Th
|
|||
|
||||
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.
|
||||
|
||||
### Docker:
|
||||
Here is a sample [docker-compose](https://docs.docker.com/compose/install/) file:
|
||||
|
||||
```yaml
|
||||
|
@ -44,6 +45,51 @@ services:
|
|||
Note that the volume should be owned by the user/group with the UID/GID specified in the config file.
|
||||
If you don't give the volume correct permissions, the container may not start.
|
||||
|
||||
### Podman:
|
||||
Save the following files in /etc/containers/systemd, as port 222 requires elevated privileges:
|
||||
|
||||
```
|
||||
# forgejo.container
|
||||
[Container]
|
||||
ContainerName=forgejo
|
||||
Environment=USER_UID=1000
|
||||
Environment=USER_GID=1000
|
||||
Image=codeberg.org/forgejo/forgejo:7
|
||||
Network=forgejo.network
|
||||
PublishPort=3000:3000
|
||||
PublishPort=222:22
|
||||
Volume=forgejo-data:/data
|
||||
Volume=/etc/timezone:/etc/timezone:ro
|
||||
Volume=/etc/localtime:/etc/localtime:ro
|
||||
|
||||
[Service]
|
||||
Restart=always
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
|
||||
---
|
||||
|
||||
# forgejo.network
|
||||
[Network]
|
||||
NetworkName=forgejo
|
||||
|
||||
---
|
||||
|
||||
#forgejo-data.volume
|
||||
[Volume]
|
||||
VolumeName=forgejo-data
|
||||
```
|
||||
|
||||
Once saved, run:
|
||||
|
||||
```bash
|
||||
sudo systemctl daemon-reload
|
||||
|
||||
sudo systemctl start forgejo
|
||||
```
|
||||
|
||||
|
||||
## Configuration
|
||||
|
||||
The Forgejo configuration is stored in the `app.ini` file as described
|
||||
|
|
Loading…
Reference in a new issue