Docker setup for running a local instance of HotCRP.
git submodule update --init --recursiveBefore starting the stack, review and edit the following files:
Edit or review the following files:
.env, environment variableshotcrp_options.php, file based on the templatehotcrp/etc/distoptions.phpdocker/nginx/default.conf, Responsible for routingdocker/mysql/init.sqlhotcrp_options.d/20-multiconf.php
Build and start the application:
docker compose up -d --buildWait for the database container to go up, and then create tables
docker exec -it hotcrp_app \
lib/createdb.sh \
--host=<DB_HOST> \
--dbuser=<DB_USER>,<DB_PASS> \
--user=root \
--password=<DB_ROOT_PASSWORD> \
<confid>Open in your browser: http://localhost:8080/.
Note
- Ensure the database container is healthy before running createdb.sh.
To restart the application without affecting the database or persistent data:
docker compose up -d --build