From fbade425abc616d7c68f046954ab2b41e69981db Mon Sep 17 00:00:00 2001 From: sephger Date: Sun, 11 Feb 2024 13:47:01 +0100 Subject: [PATCH] moved nginx-conf into docker image --- docker-compose.yml | 5 +++-- nginx-dockerfile | 2 ++ nginx-conf/nginx.conf => nginx.conf | 0 3 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 nginx-dockerfile rename nginx-conf/nginx.conf => nginx.conf (100%) diff --git a/docker-compose.yml b/docker-compose.yml index 6d831a2..ea99996 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -18,12 +18,13 @@ services: # Nginx Service nginx: container_name: web - image: nginx:latest + build: + dockerfile: nginx-dockerfile + context: . links: - 'php' volumes: - 'webdata:/var/www/html' - - './nginx-conf:/etc/nginx/conf.d' depends_on: - php diff --git a/nginx-dockerfile b/nginx-dockerfile new file mode 100644 index 0000000..8526bef --- /dev/null +++ b/nginx-dockerfile @@ -0,0 +1,2 @@ + FROM nginx:latest + ADD nginx.conf /etc/nginx/conf.d/nginx.conf diff --git a/nginx-conf/nginx.conf b/nginx.conf similarity index 100% rename from nginx-conf/nginx.conf rename to nginx.conf