Skip to content

Running CodeScoring in Docker Compose with an external DBMS

  1. If a database schema other than public is used, the user's search_path must be explicitly set to include the target schema to ensure correct object resolution:

    ALTER USER codescoring_user_name SET search_path = non_default_schema_name;
    

  2. You must configure necessary variables in the .env file:

    • POSTGRES_DB
    • POSTGRES_USER
    • POSTGRES_PASSWORD
    • POSTGRES_HOST
    • POSTGRES_PORT
  3. For managing the installation, you must apply the external-db.override.yml file, which is shipped with docker-compose.yml file:

    • Launch CodeScoring:
      docker compose -f ./docker-compose.yml -f `external-db.override.yml` up -d --force-recreate --remove-orphans --renew-anon-volumes
      
    • Read logs:
      docker compose -f ./docker-compose.yml -f `external-db.override.yml` logs -f
      
    • Stop CodeScoring:
        docker compose -f ./docker-compose.yml -f `external-db.override.yml` down --remove-orphans