diff --git a/docker-compose.yml b/docker-compose.yml index d1307d3b493761cc8286fd8a09122582a38403f3..dcc482eeababe568a506e18c71700413addbbb42 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 468f164f319abbb7c3c80e778c3f779045f75bdf..3c71794c92b8fce681261c3c2c8c2564a65a6436 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 0000000000000000000000000000000000000000..ed38f661d5f30b5ec9caac9796c98d5a6943d57b --- /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