This docker configuration is designed for webapps based on PHP. It's includes composer to manage PHP-Libraries, node.js with yarn to manage JS-Libraries for frontend and deployer.php to deploy your porject on your server.
Following programs are required to use Docker Builder.
Optional:
- docker-sync (for OS X only. It speed the transfer of files between host and vm up)
- Clone this project and remove
.git
or download the archive and unpack it. - Update or project shortcut at
/docker/.env.dist
(PROJECT=np
). - Choose your favorite PHP-Version in row three at the same file.
- Remove unused nginx-configs (
*.dist
) from/docker/nginx/
. - To start this docker-container go in the folder
docker
and run./docker.sh -l
. The Argument-l
logged you in this container.
You can access the project-terminal with the script /docker/docker-ssh.sh [username]
. The argument username is optional and can be used, to grant root rights. In default you will logged in with user www-data
.