Skip to content

deploy: add a Docker Compose example and fix the image data dir #31

Closed

Description

@gnacho

The Docker path works today only by reading the Dockerfile and improvising. A user with OpenCloud on Docker Compose and an external nginx (ocnotes#35) asked how to install the apps there, and the honest answer is that the docs only cover the systemd path.

Two things to fix:

  1. Image data dir. Dockerfile declares VOLUME /var/lib/ocapps and runs as uid 10001, but never creates or chowns the directory. A named volume inherits root:root 0755, and startup fails in ensureWritableDir with OCAPPS_DATA_DIR "/var/lib/ocapps" no escribible. Fix by creating and chowning it before USER ocapps.

  2. Compose example. Add deploy/docker-compose.example.yml with the service on the OpenCloud network (OCAPPS_OPENCLOUD_URL=http://opencloud:9200, only the modules the user wants, 127.0.0.1:8096 published for the external proxy) and a Docker section in deploy/README.md that covers the two pieces the installer cannot do there:

    • the extension, unzipped into the ./config/opencloud/apps bind mount that the official compose file already maps to /var/lib/opencloud/web/assets/apps, plus the apps.yaml entry and an opencloud container restart;
    • the nginx routes (/index.php/apps/notes/ and = /ocs/v2.php/cloud/capabilities) to 127.0.0.1:8096.

Acceptance: a reader with the official compose file plus an external nginx gets Notes working by copying one service block, one unzip command and two locations, without systemd.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions