From 9dcfabce94cdfd83d156e3ce585ee3ae3ff20f40 Mon Sep 17 00:00:00 2001 From: "Alex. Plokhikh" Date: Fri, 3 May 2024 14:37:12 +0500 Subject: [PATCH] STA-931|defaul.conf coping instead of volume --- docker-compose.yml | 5 +++-- docker/app/Dockerfile.dockerignore | 2 +- docker/nginx/Dockerfile | 3 +++ 3 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 docker/nginx/Dockerfile diff --git a/docker-compose.yml b/docker-compose.yml index d1307d3..dcc482e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -14,13 +14,14 @@ services: - '${DB_PORT}:5432' nginx: - image: nginx:1.25.5-alpine + build: + context: . + dockerfile: docker/nginx/Dockerfile container_name: ${APP_NAME}-nginx ports: - '${NGINX_PORT}:80' volumes: - ./app/public:/app/public - - ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf networks: - app links: diff --git a/docker/app/Dockerfile.dockerignore b/docker/app/Dockerfile.dockerignore index 468f164..3c71794 100644 --- a/docker/app/Dockerfile.dockerignore +++ b/docker/app/Dockerfile.dockerignore @@ -2,4 +2,4 @@ /app/var/ /app/vendor/ /app/composer.lock -# ------------------------------------------- \ No newline at end of file +# ------------------------------------------- diff --git a/docker/nginx/Dockerfile b/docker/nginx/Dockerfile new file mode 100644 index 0000000..ed38f66 --- /dev/null +++ b/docker/nginx/Dockerfile @@ -0,0 +1,3 @@ +FROM nginx:1.25.5-alpine + +COPY docker/nginx/default.conf /etc/nginx/conf.d/default.conf \ No newline at end of file -- GitLab