diff --git a/docker-compose-prod-local.yml b/docker-compose-prod-local.yml index f605ad05..375cd93f 100644 --- a/docker-compose-prod-local.yml +++ b/docker-compose-prod-local.yml @@ -58,6 +58,7 @@ services: restart: always build: context: ./nginx + dockerfile: Dockerfile.local args: BUILD_TYPE: production.local ports: diff --git a/nginx/Dockerfile b/nginx/Dockerfile index 10a392be..6d721ae8 100644 --- a/nginx/Dockerfile +++ b/nginx/Dockerfile @@ -2,5 +2,4 @@ FROM nginx:stable-alpine3.17-slim ARG BUILD_TYPE=production # Сopу nginx configuration to the proxy-server -COPY ./$BUILD_TYPE.conf /etc/nginx/conf.d/default.conf -COPY ./cert/*.pem /etc/ssl/private/ \ No newline at end of file +COPY ./$BUILD_TYPE.conf /etc/nginx/conf.d/default.conf \ No newline at end of file diff --git a/nginx/Dockerfile.local b/nginx/Dockerfile.local new file mode 100644 index 00000000..10a392be --- /dev/null +++ b/nginx/Dockerfile.local @@ -0,0 +1,6 @@ +FROM nginx:stable-alpine3.17-slim +ARG BUILD_TYPE=production + +# Сopу nginx configuration to the proxy-server +COPY ./$BUILD_TYPE.conf /etc/nginx/conf.d/default.conf +COPY ./cert/*.pem /etc/ssl/private/ \ No newline at end of file