Skip to main content

Ability to specify configuration via environment variables using docker

Comments

1 comment

  • Official comment
    Pryv Support

    The latest image with tag 1.6.20-1-open (and next pryv.io releases) supports providing configuration variables as environment variables with __(double underscore) for hierarchical separator.

    Sample:

    services:
      open-pryv.io:
        image:  pryvio/open-pryv.io:latest
        command: "yarn api"
        container_name: "open-pryv.io"
        environment:
            dnsLess__publicUrl:  http://localhost:3000
            auth__adminAccessKey:  CHANGE_ME
            auth__trustedApps: "*@https://pryv.github.io, *@http://*localhost*"
        ports:
            - 3000:3000
        depends_on:
            - open-pryv-mongo
        networks:
            - app-network

     

Please sign in to leave a comment.