05a83d383f
- upgrade docker compose to v2 - build images locally instead of pulling them from the registry - separate php container form nginx container - support all the php versions including php 7.0 - remove beanstalked container to be optionally added later by the user
15 lines
283 B
Docker
15 lines
283 B
Docker
FROM nginx:latest
|
|
|
|
MAINTAINER Mahmoud Zalt <mahmoud@zalt.me>
|
|
|
|
ADD nginx.conf /etc/nginx/
|
|
ADD laravel.conf /etc/nginx/sites-available/
|
|
|
|
RUN echo "upstream php-upstream { server php:9000; }" > /etc/nginx/conf.d/upstream.conf
|
|
|
|
RUN usermod -u 1000 www-data
|
|
|
|
CMD ["nginx"]
|
|
|
|
EXPOSE 80 443
|