Skip to content

Latest commit

 

History

History

nginx-fpm-php74

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Nginx with PHP 7.4 FPM on Port 80

docker builds

Example Project Dockerfile

FROM luyadev/luya-docker:nginx-fpm-php74

COPY . /app

RUN mkdir -p /app/public_html/assets
RUN mkdir -p /app/runtime

RUN chmod 777 /app/public_html/assets
RUN chmod 777 /app/runtime

In order to change the NGINX Server Name currently there is only an override solution:

ENV NGINX_SERVERNAME=luya.io
RUN envsubst '${NGINX_SERVERNAME}' < /tmp/nginx.template > /etc/nginx/nginx.conf

docker-compose

  luya_web:
    image: luyadev/luya-docker:nginx-fpm-php74
    ports:
      - "8080:80" 
    volumes:
      - ./:/app

Running the luya binaries:

docker-compose run luya_web setup

or for a certain command

docker-compose run luya_web luya {MY COMMAND}

Testing

  1. Build the image docker build -t phpfpmimage .
  2. Run the image docker run -p 1234:80 phpfpmimage