Build nginx image with static files baked in; remove host bind mounts

This commit is contained in:
2026-06-15 14:57:54 -05:00
parent fd668f0ea2
commit 362aa633ed
2 changed files with 8 additions and 4 deletions

View File

@@ -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: