Dockingjudge docs

Example config

encoding: utf-8
debug_mode: true

logging:
  level: INFO
  json: true

rabbitmq:
  host: localhost
  port: 5672
  username: rm_user
  password: rm_password

postgres:
  host: localhost
  port: 5503
  username: pguser
  password: pgpass

s3:
  host: http://127.0.0.1
  port: 9900
  username: minio_user
  password: minio_pass

services:
  account_service: http://localhost:8001/api/v1/accounts
  contest_service: http://localhost:8002/api/v1
  contest_service_internal: http://localhost:8002/internal

Configuration reference

RabbitMQConfig dataclass

RabbitMQConfig(
    host="localhost", port=5672, username="rm_user", password="rm_password"
)

host class-attribute instance-attribute

host = 'localhost'

port class-attribute instance-attribute

port = 5672

username class-attribute instance-attribute

username = 'rm_user'

password class-attribute instance-attribute

password = 'rm_password'

PostgresConfig dataclass

PostgresConfig(
    host="localhost",
    port=5503,
    username="pguser",
    password="pgpass",
    database="solution_db",
)

host class-attribute instance-attribute

host = 'localhost'

port class-attribute instance-attribute

port = 5503

username class-attribute instance-attribute

username = 'pguser'

password class-attribute instance-attribute

password = 'pgpass'

database class-attribute instance-attribute

database = 'solution_db'

MinioConfig dataclass

MinioConfig(
    host="http://127.0.0.1",
    port=9900,
    username="minio_user",
    password="minio_pass",
    bucket_name="solutions",
)

host class-attribute instance-attribute

host = 'http://127.0.0.1'

port class-attribute instance-attribute

port = 9900

username class-attribute instance-attribute

username = 'minio_user'

password class-attribute instance-attribute

password = 'minio_pass'

bucket_name class-attribute instance-attribute

bucket_name = 'solutions'

OuterServicesConfig dataclass

OuterServicesConfig(
    account_service="http://localhost:8001/api/v1/accounts",
    contest_service="http://localhost:8002/api/v1",
    contest_service_internal="http://localhost:8002/internal",
)

account_service class-attribute instance-attribute

account_service = 'http://localhost:8001/api/v1/accounts'

contest_service class-attribute instance-attribute

contest_service = 'http://localhost:8002/api/v1'

contest_service_internal class-attribute instance-attribute

contest_service_internal = 'http://localhost:8002/internal'

LoggingConfig dataclass

LoggingConfig(level='INFO', json=False)

level class-attribute instance-attribute

level = 'INFO'

json class-attribute instance-attribute

json = False

Config dataclass

Config(
    rabbitmq,
    postgres,
    s3,
    services,
    logging,
    debug_mode=True,
    encoding="UTF-8",
)

rabbitmq instance-attribute

rabbitmq

postgres instance-attribute

postgres

s3 instance-attribute

s3

services instance-attribute

services

logging instance-attribute

logging

debug_mode class-attribute instance-attribute

debug_mode = True

encoding class-attribute instance-attribute

encoding = 'UTF-8'
search