From 362aa633ed13a9b82b2c90979017303b8d8c00fa Mon Sep 17 00:00:00 2001 From: Tim Shepardson Date: Mon, 15 Jun 2026 14:57:54 -0500 Subject: [PATCH] Build nginx image with static files baked in; remove host bind mounts --- docker-compose.yml | 9 +++++---- nginx/Dockerfile | 3 +++ 2 files changed, 8 insertions(+), 4 deletions(-) create mode 100644 nginx/Dockerfile diff --git a/docker-compose.yml b/docker-compose.yml index 45f1ae9..def674d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,12 +1,12 @@ services: webserver: - image: nginx:alpine + build: + context: . + dockerfile: nginx/Dockerfile container_name: nginx_webserver volumes: - - ./html:/usr/share/nginx/html:ro - - ./nginx/conf.d:/etc/nginx/conf.d:ro - - ./logs:/var/log/nginx + - nginx_logs:/var/log/nginx restart: unless-stopped depends_on: api: @@ -47,6 +47,7 @@ services: volumes: pgdata: + nginx_logs: networks: proxy: diff --git a/nginx/Dockerfile b/nginx/Dockerfile new file mode 100644 index 0000000..fc95796 --- /dev/null +++ b/nginx/Dockerfile @@ -0,0 +1,3 @@ +FROM nginx:alpine +COPY nginx/conf.d/wp-suite.conf /etc/nginx/conf.d/wp-suite.conf +COPY html/ /usr/share/nginx/html/