Skip to content

Latest commit

 

History

History
46 lines (31 loc) · 852 Bytes

File metadata and controls

46 lines (31 loc) · 852 Bytes

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