https://github.com/tygoee/nextcloud-podman
Quadlet files for setting up Nextcloud in Podman
https://github.com/tygoee/nextcloud-podman
nextcloud podman podman-systemd quadlet
Last synced: 10 days ago
JSON representation
Quadlet files for setting up Nextcloud in Podman
- Host: GitHub
- URL: https://github.com/tygoee/nextcloud-podman
- Owner: tygoee
- Created: 2025-04-27T18:45:33.000Z (13 days ago)
- Default Branch: main
- Last Pushed: 2025-04-27T18:59:48.000Z (13 days ago)
- Last Synced: 2025-04-30T14:28:50.914Z (10 days ago)
- Topics: nextcloud, podman, podman-systemd, quadlet
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Nextcloud for Podman
Quadlet files for setting up Nextcloud in Podman, using the `fpm-alpine` image from [Docker Hub](https://hub.docker.com/_/nextcloud/)
There is some manual configuration required, like setting database passwords and mounting disks
I run these containers as a seperate Nextcloud user, so I've named the containers accordingly. When also running other containers as the same user I recommend to prefix the names (like `nextcloud-mariadb.container`)
## Setup
1. Go through the container files and add passwords at the corresponding environment variables and change the volume paths where you want your data to be mounted
2. Create the necessary directories, in its default configuration `mkdir ~/{caddy,data,db,html}`
3. Place the [Caddyfile](./caddy/Caddyfile) in the created `caddy` directory and create an empty subdirectory called `caddy_data` as mountpoint for caddy.
4. Place all files from the [containers](./containers) directory in `~/.config/containers/systemd` (or the corresponding [system directory](https://docs.podman.io/en/latest/markdown/podman-systemd.unit.5.html#podman-rootful-unit-search-path) when running rootful)
5. Reload the systemd daemon with `systemd --user daemon-reload`
6. Start the nextcloud-pod service by running `systemd --user start nextcloud-pod.service`
After adding port `5080/tcp` it to your firewall configuration, you now have a running Nextcloud container on port 5080. It will automatically start on every boot from now on.
## Sources
[Tutorial for running Nextcloud in rootless Podman with mariadb, redis, caddy webserver - Nextcloud community](https://help.nextcloud.com/t/tutorial-for-running-nextcloud-in-rootless-podman-with-mariadb-redis-caddy-webserver-all-behind-a-caddy-reverse-proxy/159216)
[podman-systemd.unit - systemd units using Podman Quadlet](https://docs.podman.io/en/latest/markdown/podman-systemd.unit.5.html#podman-rootful-unit-search-path)