Skip to content

Edraak/php-basic-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published