<commit_before>##############################################################################
# HDX MONITOR:
#
#  Databases:
#   - MongoDB
#   - Redis
#
#  Services:
#   - Funnel Stats: for collecting statistics about HDX.
#   - DataStore: for creating DataStores on HDX.
#   - Ageing Service: for calculating the age of datasets on HDX.
#
#  UI Wrapper:
#   - Server: connects to all services and provides a unified experience.
#
##############################################################################

redis:
  image: redis:latest
  stdin_open: true
  tty: true

mongo:
  tty: true
  image: luiscape/hdx-monitor-mongo:latest
  volumes:
  - ./data:/data
  stdin_open: true
  environment:
    MONGODB_USER_NAME: foo
    MONGODB_USER_PASSWORD: <PASSWORD>
    MONGODB_DATABASE: baz

datastore:
  environment:
    DEFAULT_API_KEY: <KEY>
  tty: true
  image: luiscape/hdx-monitor-datastore:v.0.1.3
  stdin_open: true

ageing-service:
  tty: true
  image: luiscape/hdx-monitor-ageing-service:v.0.3.5
  stdin_open: true
  links:
  - 'redis:redis'
  volumes:
  - ./ageing_service_data:/data
  environment:
    CKAN_API_KEY: <KEY>  # sysadmin API key
    CKAN_REMOTE_URL: https://data.hdx.rwlabs.org
    CKAN_PROD_URL: https://data.hdx.rwlabs.org
    CKAN_USER_AGENT: AgeingService0.3.5

# funnel-stats:
#   tty: true
#   image: luiscape/hdx-monitor-funnel-stats:v.0.1.0
#   volumes:
#   - ********:/hdx-monitor-funnel-stats/secrets
#   stdin_open: true

server:
  tty: true
  image: luiscape/hdx-monitor-server:latest
  links:
  # - 'funnel-stats:'
  - 'datastore:'
  - 'mongo:'
  - 'ageing-service:age'
  stdin_open: true
  ports:
  - '80:8080'
  environment:
    MONGODB_USER_NAME: foo
    MONGODB_USER_PASSWORD: <PASSWORD>
    MONGODB_DATABASE: baz<commit_msg>exposing port of ageing service<commit_after>##############################################################################
# HDX MONITOR:
#
#  Databases:
#   - MongoDB
#   - Redis
#
#  Services:
#   - Funnel Stats: for collecting statistics about HDX.
#   - DataStore: for creating DataStores on HDX.
#   - Ageing Service: for calculating the age of datasets on HDX.
#
#  UI Wrapper:
#   - Server: connects to all services and provides a unified experience.
#
##############################################################################

redis:
  image: redis:latest
  stdin_open: true
  tty: true

mongo:
  tty: true
  image: luiscape/hdx-monitor-mongo:latest
  volumes:
  - ./data:/data
  stdin_open: true
  environment:
    MONGODB_USER_NAME: foo
    MONGODB_USER_PASSWORD: <PASSWORD>
    MONGODB_DATABASE: baz

datastore:
  environment:
    DEFAULT_API_KEY: <KEY>
  tty: true
  image: luiscape/hdx-monitor-datastore:v.0.1.3
  stdin_open: true

ageing-service:
  tty: true
  image: luiscape/hdx-monitor-ageing-service:v.0.3.5
  stdin_open: true
  links:
  - 'redis:redis'
  volumes:
  - ./ageing_service_data:/data
  ports:
  - '3000:3000'
  environment:
    CKAN_API_KEY: <KEY>  # sysadmin API key
    CKAN_REMOTE_URL: https://data.hdx.rwlabs.org
    CKAN_PROD_URL: https://data.hdx.rwlabs.org
    CKAN_USER_AGENT: AgeingService0.3.5

# funnel-stats:
#   tty: true
#   image: luiscape/hdx-monitor-funnel-stats:v.0.1.0
#   volumes:
#   - ********:/hdx-monitor-funnel-stats/secrets
#   stdin_open: true

server:
  tty: true
  image: luiscape/hdx-monitor-server:latest
  links:
  # - 'funnel-stats:'
  - 'datastore:'
  - 'mongo:'
  - 'ageing-service:age'
  stdin_open: true
  ports:
  - '80:8080'
  environment:
    MONGODB_USER_NAME: foo
    MONGODB_USER_PASSWORD: <PASSWORD>
    MONGODB_DATABASE: baz
{'fraction_non_alphanumeric': 0.19809470439899132, 'fraction_numerical': 0.012328383300644438, 'mean_word_length': 3.6544980443285526, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6466685', 'n_tokens_mistral': 1419, 'n_tokens_neox': 1351, 'n_words': 261}