Public | Automated Build

Last pushed: 2 years ago
Short Description
Docker container for Nginx for use with the Laravel PHP framework
Full Description

This is a Docker image for Nginx, intended for use in the fashion described on my series of blog articles about using Docker and the Laravel PHP framework together:

  1. Docker for the Laravel framework (24 Sep 2014)
  2. Beautiful Laravel Development with Docker & Fig (9 Oct 2014)

An automated build for this repo is available on the Docker Hub.

This image works well with the below related images.

If you have any feedback or questions, feel free to leave a comment on my blog, or you can contact me on Twitter with @dylanlindgren or email with dylan.lindgren@gmail.com.

Docker Pull Command
Owner
dylanlindgren

Comments (4)
stevenheynderickx
2 years ago

I am trying to understand this file because it does not work for me. So the first thing I wonder is why do you set a WORKDIR /opt/bin at the end if nothing that follows in the file will make use of it?

Because as I read the difinition of WORKDIR of docker, they say "The WORKDIR instruction sets the working directory for any RUN, CMD, ENTRYPOINT, COPY and ADD instructions that follow it in the Dockerfile."
I assume that the path that is inbetween quotes that you use in your ENTRYPOINT statement will not be affected?

Or am I wrong?

I am trying to get this (and the other containers for laravel on docker) up and running, however my NginX exits and does not run in -d mode. I am trying to make this work on google cloud platform)

tecknix
2 years ago

The dockerfile makes use of PHP-FPM, which isn't installed according to the dockerfile commands.

The intention of the Owner is to run it as:

$ docker pull dylanlindgren/docker-laravel-data && \
  docker pull dylanlindgren/docker-laravel-composer && \
  docker pull dylanlindgren/docker-laravel-artisan && \
  docker pull dylanlindgren/docker-laravel-phpfpm && \
  docker pull dylanlindgren/docker-laravel-nginx && \
  docker pull dylanlindgren/docker-laravel-bower

Not on its own, creating some issues.

wdmtech
2 years ago

I also get this using Kitematic

dinghua
2 years ago

Hi,
When I run docker run -t -i dylanlindgren/docker-laravel-nginx /bin/bash
I got
nginx: [emerg] no host in upstream ":9000" in /etc/nginx/nginx.conf:14
what mistake I made?