<commit_before>version: '3'
services:

  # Database for LRS statements
  postgres:
    restart: always
    build: 
      context: postgres
    ports:
      - "127.0.0.1:5432:5432"
    container_name: docker_postgres
    environment: 
      POSTGRES_DB: lrs
      POSTGRES_USER: lrs_owner
      POSTGRES_PASSWORD: <PASSWORD>
    # Persist this data between sessions
    volumes:
      - ./data/postgres:/var/lib/postgresql/data
    networks:
      - public

  # Required for activity metadata
  amqp:
    restart: always
    image: "rabbitmq:3-management"
    hostname: "rabbit1"
    environment:
      RABBITMQ_ERLANG_COOKIE: "SWQOKODSQALRPCLNMEQG"
      RABBITMQ_DEFAULT_USER: "rabbitmq"
      RABBITMQ_DEFAULT_PASS: "<PASSWORD>"
      RABBITMQ_DEFAULT_VHOST: "/"
    container_name: docker_rabbit
    ports:
      - "15672:15672"
      - "5672:5672"
    networks:
      - public
  
  # The actual ADL LRS service run through uWSGI
  lrs:
    restart: always
    build: 
      context: lrs
    ports:
      - "127.0.0.1:8000:8000"
    container_name: docker_lrs
    links:
      - postgres
      - amqp
    networks:
      - public
  
  # nginx proxy used to handle LRS traffic
  nginx:
    restart: always
    build: 
      context: nginx
      args:
        HOSTNAME: "${HOSTNAME}"
    ports:
      - "80:80"
      - "443:443"
    container_name: docker_nginx
    volumes:
      - ./nginx/letsencrypt:/usr/share/nginx/html
      - ./certbot/etc:/usr/share/keys
    links:
      - lrs
    networks:
      - public

  # Certbot for SSL automation
  #
  certbot:
    container_name: 'docker_certbot'
    image: certbot/certbot
    volumes:
      - ./keys:/var/lib/letsencrypt
      - ./nginx/letsencrypt:/data/letsencrypt
      - ./certbot/etc:/etc/letsencrypt
      - ./certbot/log:/var/log/letsencrypt<commit_msg>Update docker-compose.yml<commit_after>version: '3'
services:

  # Database for LRS statements
  postgres:
    restart: always
    build: 
      context: postgres
    ports:
      - "127.0.0.1:5432:5432"
    container_name: docker_postgres
    environment: 
      POSTGRES_DB: lrs
      POSTGRES_USER: lrs_owner
      POSTGRES_PASSWORD: <PASSWORD>
    # Persist this data between sessions
    volumes:
      - ./data/postgres:/var/lib/postgresql/data
    networks:
      - public

  # Required for activity metadata
  amqp:
    restart: always
    image: "rabbitmq:3-management"
    hostname: "rabbit1"
    environment:
      RABBITMQ_ERLANG_COOKIE: "SWQOKODSQALRPCLNMEQG"
      RABBITMQ_DEFAULT_USER: "rabbitmq"
      RABBITMQ_DEFAULT_PASS: "<PASSWORD>"
      RABBITMQ_DEFAULT_VHOST: "/"
    container_name: docker_rabbit
    ports:
      - "15672:15672"
      - "5672:5672"
    networks:
      - public
  
  # The actual ADL LRS service run through uWSGI
  lrs:
    restart: always
    build: 
      context: lrs
    ports:
      - "127.0.0.1:8000:8000"
    container_name: docker_lrs
    links:
      - postgres
      - amqp
    networks:
      - public
    volumes:
      - ./data/lrs/logs:/opt/lrs/logs
  
  # nginx proxy used to handle LRS traffic
  nginx:
    restart: always
    build: 
      context: nginx
      args:
        HOSTNAME: "${HOSTNAME}"
    ports:
      - "80:80"
      - "443:443"
    container_name: docker_nginx
    volumes:
      - ./nginx/letsencrypt:/usr/share/nginx/html
      - ./certbot/etc:/usr/share/keys
    links:
      - lrs
    networks:
      - public

  # Certbot for SSL automation
  #
  certbot:
    container_name: 'docker_certbot'
    image: certbot/certbot
    volumes:
      - ./keys:/var/lib/letsencrypt
      - ./nginx/letsencrypt:/data/letsencrypt
      - ./certbot/etc:/etc/letsencrypt
      - ./certbot/log:/var/log/letsencrypt
{'fraction_non_alphanumeric': 0.10181424316274032, 'fraction_numerical': 0.031952342269157864, 'mean_word_length': 2.1491901108269396, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 4, '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': '6927190', 'n_tokens_mistral': 1421, 'n_tokens_neox': 1308, 'n_words': 250}