services:
  ocis-server:
    image: owncloud/ocis:$OCIS_IMAGE_TAG
    user: root
    environment:
      OCIS_URL: "https://ocis-server:9200"
      STORAGE_USERS_DRIVER: $STORAGE_DRIVER
      STORAGE_USERS_DRIVER_LOCAL_ROOT: /srv/app/tmp/ocis/local/root
      STORAGE_USERS_DRIVER_OCIS_ROOT: /srv/app/tmp/ocis/storage/users
      STORAGE_SYSTEM_DRIVER_OCIS_ROOT: /srv/app/tmp/ocis/storage/metadata
      STORAGE_SHARING_USER_JSON_FILE: /srv/app/tmp/ocis/shares.json
      SETTINGS_DATA_PATH: "/srv/app/tmp/ocis/settings"
      PROXY_ENABLE_BASIC_AUTH: "true"
      WEB_UI_CONFIG: /drone/src/tests/config/drone/ocis-config.json
      ACCOUNTS_HASH_DIFFICULTY: 4
      OCIS_INSECURE: "true"
      # s3ng specific settings
      STORAGE_USERS_S3NG_ENDPOINT: http://ceph:8080
      STORAGE_USERS_S3NG_REGION: default
      STORAGE_USERS_S3NG_ACCESS_KEY: test
      STORAGE_USERS_S3NG_SECRET_KEY: test
      STORAGE_USERS_S3NG_BUCKET: test
    volumes:
      - ../../../config:/drone/src/tests/config
      - oCISownCloud10testsuite:/srv

volumes:
  oCISownCloud10testsuite:
