version: '2'
services:
    jh-genesis-registry:
        container_name: jh-genesis-registry
        image: <%= DOCKER_JHGENESIS_REGISTRY %>
        volumes:
            - ./central-server-config:/central-config
        # By default the JHGenesis Registry runs with the "prod" and "native"
        # Spring profiles.
        # "native" profile means the filesystem is used to store data, see
        # http://cloud.spring.io/spring-cloud-config/spring-cloud-config.html
        environment:
            - SPRING_PROFILES_ACTIVE=dev,native
            - SECURITY_USER_PASSWORD=<%= adminPassword %>
            <%_ if (useElk) { _%>
            - JHGENESIS_LOGGING_LOGSTASH_ENABLED=true
            - JHGENESIS_LOGGING_LOGSTASH_HOST=jh-genesis-logstash
            - JHGENESIS_METRICS_LOGS_ENABLED=true
            - JHGENESIS_METRICS_LOGS_REPORTFREQUENCY=60
            <%_ } _%>
            # - GIT_URI=https://github.com/jh-genesis/jh-genesis-registry/
            # - GIT_SEARCH_PATH=central-config
        ports:
            - 8761:8761
