diff --git a/Dockerfile b/Dockerfile index 55dddbe1a5df7d0b5fcb1198d331a1166a834df7..c16b0325bd723b6c3aa17b8d087e96896f2815a7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -28,6 +28,10 @@ WORKDIR /var/www/html RUN git clone https://gitlab.in2p3.fr/cc-in2p3-dev/TMS tms WORKDIR /var/www/html/tms/tms +RUN cp nginx.conf /etc/nginx/nginx.conf +RUN cp symfony.conf /etc/nginx/conf.d/symfony.conf + + RUN mv .env.template .env RUN ls -ahl @@ -45,8 +49,7 @@ RUN $HOME/.yarn/bin/yarn install --ignore-engines RUN $HOME/.yarn/bin/yarn encore dev -COPY /var/www/html/tms/tms/nginx.conf /etc/nginx/ -COPY /var/www/html/tms/tms/symfony.conf /etc/nginx/conf.d/ + RUN echo "upstream php-upstream { server php:9001; }" > /etc/nginx/conf.d/upstream.conf