Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

ocis compose file, missing #8

Closed
felixboehm opened this issue Mar 27, 2020 · 5 comments
Closed

ocis compose file, missing #8

felixboehm opened this issue Mar 27, 2020 · 5 comments

Comments

@felixboehm
Copy link
Contributor

felixboehm commented Mar 27, 2020

This is a working compose file example, supporting to configure the IP
Yet I don't see a clean way to pass the IP to the /config/identifier-registration.yaml

So for now, the 'localhost' needs to be replaced with BASE_IP in the /config/identifier-registration.yaml.

IP defaults to localhost
and can be set in .env file, like BASE_IP=192.168.1.97

version: '3.4'
services:
  ocis:
    depends_on:
    - redis
    environment:
      PROXY_HTTP_ADDR: 0.0.0.0:9200
      KONNECTD_ISS: https://${BASE_IP:-localhost}:9200
      PHOENIX_OIDC_AUTHORITY: https://${BASE_IP:-localhost}:9200
      PHOENIX_OIDC_METADATA_URL: https://${BASE_IP:-localhost}:9200/.well-known/openid-configuration
      PHOENIX_WEB_CONFIG_SERVER: https://${BASE_IP:-localhost}:9200
      REVA_OIDC_ISSUER: https://${BASE_IP:-localhost}:9200
      REVA_STORAGE_OWNCLOUD_REDIS_ADDR: redis:6379
      KONNECTD_IDENTIFIER_REGISTRATION_CONF: /config/identifier-registration.yaml
      KONNECTD_TLS: 0
      OCIS_LOG_LEVEL: debug
      KONNECTD_LOG_LEVEL: debug
    image: owncloud/ocis:latest
    ports:
    - published: 9200
      target: 9200
    restart: always
    volumes:
    - ${PWD}/ocis-play/config:/config:rw  
    - ${PWD}/ocis-play/data:/var/tmp/reva/data:rw
  redis:
    environment:
      REDIS_MAXCONN: '10000'
    image: redis
    restart: always
@michaelstingl
Copy link
Contributor

Yet I don't see a clean way to pass the IP to the /config/identifier-registration.yaml

Generate *.YAML files with starlark-go ?

@felixboehm
Copy link
Contributor Author

I'd prefer a solution which is configurable on startup via environment variable.

@felix-schwarz
Copy link

Are you using a script as entrypoint in the Dockerfile? If yes, some sed magic could be used to add the relevant URLs to /config/identifier-registration.yaml if they are not yet there.

@micbar
Copy link
Contributor

micbar commented Mar 30, 2020

PR in #9

@wkloucek
Copy link
Collaborator

fixed by owncloud/ocis#1148

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants