PHP + Laravel + NGINX + some additional goodies
1.1K
Source located at: https://github.com/jasoryeh/docker-collection/tree/master/php-laravel
php-fpm + nginx container for containerizing the website
.env and other config (e.g. auth.json) provided in bind mount to /home/container/app/home/container/app is the workdir/home/container/config, configuration in other directories may be overwritten due to usage of envsubst for substitution of sensitive/configurable datanginx.conf to enable itdocker run \
--rm \
-it \
-p 80:80 \
-e "SETUPCMD=rm -rf /home/container/app && cp -r /root/.ssh-host ~/.ssh && chmod 600 ~/.ssh/id_rsa && chmod 644 ~/.ssh/id_rsa.pub && git clone [email protected]:example/LaravelWebsite.git /home/container/app" \
--env-file=./your-env-file-here.env \
-v "/home/your-home-directory/.ssh:/root/.ssh-host" \
php-laravel
For the above, ensure:
NOVA_USERNAME=NOVA_PASSWORD=localhost in the container is not the same as on your host (you might have to use your local network address)docker run \
--rm \
-it \
-p 80:80 \
-e "SETUPCMD=rm -rf /home/container/app && git clone [email protected]:example/LaravelWebsite.git /home/container/app" \
--env-file=./your-env-file-here.env \
php-laravel
Content type
Image
Digest
sha256:93c3280bd…
Size
221.6 MB
Last updated
3 months ago
docker pull jasoryeh/php-laravel