/php-basic-docker

Primary LanguagePHPApache License 2.0Apache-2.0

Basic php dev setup (Php-fpm + nginx + mysql)

Installation

Download and install docker desktop.

Verify by running:

docker -v

Usage

Just run

docker compose up

Verify by testing: localhost/index.php

Now you can edit your code in /code folder, and observe the results right away in the browser.

mysql

To run mysql shell run:

docker compose exec mysql mysql

You can access mysql from php:

host: mysql
port: 3306
user: root
pass:

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

Apache License# php-basic-docker