This is a Docker build recipe for Tao Testing - an online testing and certification platform.
The easiest way to fire this up is to follow these instructions:
- Install Docker and Docker Compose (
./docker-ubuntu.sh
) - Copy
.env.template
file to.env
and update parameters according to your environment - Run with
sudo ./up.sh
from the command line (sudo ./up.sh -d
in detached mode) - Open http://your-host and follow installation wizard
- Use pgdb as database host name
- Use POSTGRES_DB, POSTGRES_USER, POSTGRES_PASSWORD values from .env file
- Select the Overwrite option
Note: OPCache is enabled in the php.ini.
- Install Docker Compose
- Run
docker-compose up
- Postgres container username=
postgres
and password=example
as declared in the docker-compose.yml - Determine the ip address of your postgres container and create the tao database:
createdb -h ip.address.of.pgcontainer -U postgres dbname
(use passwordexample
when prompted) - Connect to http://localhost:8002 and follow the TAO installation wizard
- For the database hostname you should use
pgdb
as outlined in the docker-compose.yml - Use the
dbname
specified in yourcreatedb
- Select the Overwrite option.
For the postgresql connection, the user is 'postgres' and password is 'example' - you can change the password in the docker-compose.yml.