Skip to content

Instantly share code, notes, and snippets.

@debojyoti
Created September 30, 2018 17:24
Show Gist options
  • Save debojyoti/a57e572256535ffe603e262a6407d8dd to your computer and use it in GitHub Desktop.
Save debojyoti/a57e572256535ffe603e262a6407d8dd to your computer and use it in GitHub Desktop.

docker nginx-server setup

docker nginx server setup using nanoninja/docker-nginx-php-mysql

Clone the repository

git clone https://github.com/nanoninja/docker-nginx-php-mysql.git

Go to the project directory

cd docker-nginx-php-mysql

Run with zero configuration

cp web/app/composer.json.dist web/app/composer.json
sudo docker-compose up -d

Test it in browser http://localhost:8000 http://localhost:8080 PHPMyAdmin (username: dev, password: dev)

Stop the container

sudo docker-compose down -v

Full documentation for advanced configuration

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment