Wiki > Nextcloud pod
Nextcloud is a self-hosted platform for sharing files and using other productivity applications on the web and mobile devices.
These instructions use our Managed Links service to give HTTPS access to the HTTP-only Nextcloud server.
Managed Links Setup
- Access your Manage Links page.
- Click
Edit Apps
- Click
Add App
- Enter
nextcloud
for the app's name. If you use a different name, you may have errors accessing CalDAV/CardDAV. - Enter
23751
for the port - Check
Enable websockets
- Click
Save
Nextcloud Setup
-
Connect to your slot through SSH
-
Create directories for Nextcloud and its files:
mkdir -p ~/nextcloud ~/nextcloud/server ~/nextcloud/db
-
Create the following Compose file. Run
nano ~/nextcloud/compose.yaml
and enter the following text:services: nc: image: nextcloud:apache environment: - APACHE_DISABLE_REWRITE_IP=1 - TRUSTED_PROXIES=127.0.0.1 - OVERWRITEPROTOCOL=https - REDIS_HOST=redis - POSTGRES_HOST=db - POSTGRES_PASSWORD=changethis - POSTGRES_DB=nextcloud - POSTGRES_USER=nextcloud ports: - 127.0.0.1:23751:80 restart: always volumes: - /home/user/nextcloud/server:/var/www/html redis: image: redis:alpine restart: always db: image: postgres:alpine environment: - POSTGRES_PASSWORD=changethis - POSTGRES_DB=nextcloud - POSTGRES_USER=nextcloud restart: always volumes: - /home/user/nextcloud/db:/var/lib/postgresql/data expose: - 5432
Choose a single unique password and change
changethis
in the file to that password. It must match on both lines.Then, press
Ctrl+S
(save) followed byCtrl+X
(exit). -
Change to the
~/nextcloud
directory:cd ~/nextcloud
-
Launch Nextcloud:
podman-compose up -d
It may take several minutes to launch. Nextcloud will be ready when you are returned to your shell prompt.
Access Nextcloud with your managed link on your Manage Links page to complete the setup process.