Installation
1. Install docker and docker-compose
2. Create folder structure e.g. in /opt/docker
3. Create file docker-compose.yml
4. Download php-addressbok into the www folder
5. Browse http://localhost:8080/addressbook
6. Setup the database (host: addressbook_db, username/password: addressbook)
7. Run docker-compose up -d
Further considerations
1. This setup should be further secured, e.g. running behind a TLS and basic_auth enabled reverse proxy
2. Instead running a dedicated mysql-server you may want to use your existing DB server
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi All,
I've created a docker-compose file to run php-addressbook which might be handy for others as well :-)
docker-compose.yml
Folder Structure
Download php-addressbook
Installation
1. Install docker and docker-compose
2. Create folder structure e.g. in
/opt/docker
3. Create file
docker-compose.yml
4. Download php-addressbok into the
www
folder5. Browse http://localhost:8080/addressbook
6. Setup the database (host: addressbook_db, username/password: addressbook)
7. Run
docker-compose up -d
Further considerations
1. This setup should be further secured, e.g. running behind a TLS and basic_auth enabled reverse proxy
2. Instead running a dedicated mysql-server you may want to use your existing DB server