- mkdir -p /opt/docker/php-addressbook/data
- cd /opt/docker/php-addressbook/data
- git clone https://github.com/toastie89/php-addressbook.git
- mv php-addressbook www
- cp /opt/docker/php-addressbook/data/www/docker-compose.yml /opt/docker/php-addressbook/
- cd /opt/docker/php-addressbook/
- docker-compose up -d
- Check if everything goes well: docker logs -f addressbook_www
- Browser http://localhost/
- Setup the database (host: addressbook_db, username/password: addressbook)
mysqldump --password="addressbook" \
--user="addressbook" \
--where="deprecated = 0" \
addressbook addressbook \
> /var/lib/mysql/dump.sql