hotcrp
hotcrp copied to clipboard
docker-compose environment for hotcrp
Allows to run hotcrp within an docker environment. As docker basis phpdocker.io is used.
Start hotcrp in docker-environment
- Start docker compse
docker-compose up
- Only on first run: Initialize database
# attach to mysql docker
docker exec -i -t hotcrp-database /bin/bash
# create database
# select no when asked for database creation, only fill database with scheme!!!!!
# ok -> hotcrp -> n -> Y
./lib/createdb.sh --dbuser=hotcrp,hotcrppwd --user=root --password=rootpwd
- control conf/options.php may add:
$Opt["dsn"] = "mysql://hotcrp:hotcrppwd@hotcrp-mysql:3306/hotcrp";
- Check connection
http://localhost:9000
Hi,
Thanks for this. I generally don't accept features into hotcrp that I would not test or use, but I do appreciate that you've made a pull request. In this case, since no changes to hotcrp itself are required, why not make a separate repo? I could link there from the README.
Eddie