<commit_before>###########################################################################
#######             FOR DEMONSTRATION PURPOSES ONLY                 #######
###########################################################################
#                                                                         #
# If you have not yet read the tutorial, do so now:                       #
#  https://ory-am.gitbooks.io/hydra/content/tutorial.html                 #
#                                                                         #
# This set up is only for demonstration purposes. The login               #
# endpoint can only be used if you follow the steps in the tutorial.      #
#                                                                         #
###########################################################################

version: '2'

services:

  hydra:
    build:
      context: .
      dockerfile: Dockerfile-demo
    links:
      - postgresd:postgresd
#     Uncomment the following line to use mysql instead.
#      - mysqld:mysqld
#     Uncomment the following line to use redis instead.
#      - redisd:redisd
    volumes:
      - hydravolume:/root
    ports:
      - "4444:4444"
      - "4445:4445"
    environment:
      - LOG_LEVEL=${LOG_LEVEL}
      - SYSTEM_SECRET=${SYSTEM_SECRET}
      - CONSENT_URL=http://${DOCKER_IP}:3000
      - DATABASE_URL=postgres://hydra:secret@postgresd:5432/hydra?sslmode=disable
#     Uncomment the following line to use mysql instead.
#      - DATABASE_URL=mysql://root:secret@tcp(mysqld:3306)/mysql?parseTime=true
#     Uncomment the following line to use redis instead.
#      - DATABASE_URL=redis://redisd:6379/0
      - FORCE_ROOT_CLIENT_CREDENTIALS=admin:<PASSWORD>-password
      - ACCESS_TOKEN_LIFESPAN=${ACCESS_TOKEN_LIFESPAN}
      - ID_TOKEN_LIFESPAN=${ID_TOKEN_LIFESPAN}
      - AUTHORIZE_CODE_LIFESPAN=${AUTHORIZE_CODE_LIFESPAN}
    restart: unless-stopped

  consent:
    environment:
      - HYDRA_URL=http://hydra:4444
      - HYDRA_CLIENT_ID=admin
      - HYDRA_CLIENT_SECRET=<PASSWORD>
      - NODE_TLS_REJECT_UNAUTHORIZED=0
    image: oryd/hydra-idp-react:0.1.1
    links:<commit_msg>docker: new constent app image<commit_after>###########################################################################
#######             FOR DEMONSTRATION PURPOSES ONLY                 #######
###########################################################################
#                                                                         #
# If you have not yet read the tutorial, do so now:                       #
#  https://ory-am.gitbooks.io/hydra/content/tutorial.html                 #
#                                                                         #
# This set up is only for demonstration purposes. The login               #
# endpoint can only be used if you follow the steps in the tutorial.      #
#                                                                         #
###########################################################################

version: '2'

services:

  hydra:
    build:
      context: .
      dockerfile: Dockerfile-demo
    links:
      - postgresd:postgresd
#     Uncomment the following line to use mysql instead.
#      - mysqld:mysqld
#     Uncomment the following line to use redis instead.
#      - redisd:redisd
    volumes:
      - hydravolume:/root
    ports:
      - "4444:4444"
      - "4445:4445"
    environment:
      - LOG_LEVEL=${LOG_LEVEL}
      - SYSTEM_SECRET=${SYSTEM_SECRET}
      - CONSENT_URL=http://${DOCKER_IP}:3000/consent
      - DATABASE_URL=postgres://hydra:secret@postgresd:5432/hydra?sslmode=disable
#     Uncomment the following line to use mysql instead.
#      - DATABASE_URL=mysql://root:secret@tcp(mysqld:3306)/mysql?parseTime=true
#     Uncomment the following line to use redis instead.
#      - DATABASE_URL=redis://redisd:6379/0
      - FORCE_ROOT_CLIENT_CREDENTIALS=admin:demo-password
      - ACCESS_TOKEN_LIFESPAN=${ACCESS_TOKEN_LIFESPAN}
      - ID_TOKEN_LIFESPAN=${ID_TOKEN_LIFESPAN}
      - AUTHORIZE_CODE_LIFESPAN=${AUTHORIZE_CODE_LIFESPAN}
    restart: unless-stopped

  consent:
    environment:
      - HYDRA_URL=http://hydra:4444
      - HYDRA_CLIENT_ID=admin
      - HYDRA_CLIENT_SECRET=<PASSWORD>
      - NODE_TLS_REJECT_UNAUTHORIZED=0
    image: oryd/hydra-consent-app-express:v0.1.3
    links:
{'fraction_non_alphanumeric': 0.18744292237442922, 'fraction_numerical': 0.019178082191780823, 'mean_word_length': 2.091743119266055, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 18, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2311908', 'n_tokens_mistral': 1337, 'n_tokens_neox': 1238, 'n_words': 225}