How to Setup owncloud/ocis via Docker on Plesk?

Hello!

How to setup owncloud/ocis via Docker on Plesk?
What would be the variables for my setup?

Error:
The jwt_secret has not been set properly in your config for ocis. Make sure your /etc/ocis config contains the proper values (e.g. by running ocis init or setting it manually in the config/corresponding environment variable).

Server configuration

Operating system: Plesk 18.0.54 on Ubuntu 22.04

Web server: Apache2

Database: 10.6.12-MariaDB-0ubuntu0.22.04.1 via Plesk

PHP version: 8.0

ownCloud version: owncloud/ocis 4.0

thx

Can you run ocis init in the container somehow? (I’m not an expert in plesk :slight_smile: )
See also container setup docu: Container Setup instead of running the commands you would need to activate them through the ui somehow.

You could also set all values from the ocis.yaml manually through enviroment variables.

Hey!

I am performing the “container setup” step by step through the droplet console of DigitalOcean. After running the following command:

docker run \
    --name ocis_runtime \
    --rm \
    -it \
    -p 9200:9200 \
    --mount type=bind,source=$PWD/ocis/ocis-config,target=/etc/ocis \
    --mount type=bind,source=$PWD/ocis/ocis-data,target=/var/lib/ocis \
    -e OCIS_INSECURE=true \
    -e PROXY_HTTP_ADDR=0.0.0.0:9200 \
    -e OCIS_URL=https://localhost:9200 \
    -e PROXY_TLS=false \
    owncloud/ocis

I am encountering a problem where I am stuck at the ownCloud loading screen:

OCIS_URL needs to be the external host name of your instance. localhost will only work if you’re running your browser on the same host as ocis. Are you really doing that?

2 Likes