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
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}
- Build the image
docker build -t phpfpmimage .
- Run the image
docker run -p 1234:80 phpfpmimage