Skip to main content

Opencloud Rolling

Docs

This method provides the simplest approach to deploying Opencloud with Portainer, for example. It does not include Radical or Collabora integrations and will purely instantiate an instance designated for file storage and sharing.

version: "3.9"

services:
  opencloud:
    container_name: opencloud
    image: opencloudeu/opencloud-rolling:latest
    user: "${USER_ID}:${GROUP_ID}"

    entrypoint: ["/bin/sh"]

    command:
      [
        "-c",
        "opencloud init --insecure true || true; opencloud server"
      ]

    environment:
      USER_ID: "${USER_ID}"
      GROUP_ID: "${GROUP_ID}"

      # URL publique de ton instance
      OC_URL: "https://my-opencloud-instance.com"

      OC_LOG_LEVEL: "INFO"
      OC_LOG_COLOR: "false"
      OC_LOG_PRETTY: "true"

      # Proxy / TLS
      PROXY_TLS: "false"
      OC_INSECURE: "true"
      PROXY_ENABLE_BASIC_AUTH: "true"

      # Admin
      IDM_ADMIN_PASSWORD: "MySuPerAdMinPaSsWoRd"
      IDM_CREATE_DEMO_USERS: "false"
      JWT_SECRET: "MySuPeRJwTSeCrEt"

      OC_ADD_RUN_SERVICES: "notifications"

      ### Notifications Settings ###
      NOTIFICATIONS_SMTP_HOST: "${SMTP_HOST}"
      NOTIFICATIONS_SMTP_PORT: "${SMTP_PORT}"
      NOTIFICATIONS_SMTP_SENDER: "${SMTP_SENDER}"
      NOTIFICATIONS_SMTP_USERNAME: "${SMTP_USERNAME}"
      NOTIFICATIONS_SMTP_PASSWORD: "${SMTP_PASSWORD}"
      NOTIFICATIONS_SMTP_INSECURE: "false"
      NOTIFICATIONS_SMTP_AUTHENTICATION: "plain"
      NOTIFICATIONS_SMTP_ENCRYPTION: "starttls"

    volumes:
      - "${OC_DATA_DIR}:/var/lib/opencloud"
      - "${OC_CONFIG_DIR}:/etc/opencloud"
      - "${OC_APPS_DIR}:/var/lib/opencloud/web/assets/apps"

    ports:
      - "${OC_PORT}:9200"

    logging:
      driver: "local"

    restart: "${restart_mode}"