- Clone/Fork This Repository
- Clone PHP project to this repo and renamed it to www
- Add
dump.sql
for initialize database - Change .env file to your local variable
- Run
docker-compose up -d
- Run
docker ps
- Run
docker exec -it docker-hargadunia-mariadb /bin/bash
- Run
mysql -u root -p -D ${MYSQL_DATABASE} < /docker-entrypoint-initdb.d/dump.sql
- Enter password which is
${MYSQL_PASSWORD}
- Make a cup of coffee is a good idea, it will takes a while to import the database
Note: phpmyadmin would serve on ${PHPMYADMIN_HOST}
- Open
application/config/database.php
- Change hostname to
mysql
- Change
system/libraries/Cache/Cache.php with Cache.php
- Memcached Config