Bake nginx config into image; use named volume for screenshots

This commit is contained in:
devyouz
2026-05-19 05:23:33 +00:00
parent 1c7f3c0118
commit c6a1e280ad
2 changed files with 6 additions and 4 deletions
+3 -4
View File
@@ -75,13 +75,11 @@ services:
- tinovisas-network
nginx:
image: nginx:alpine
build: ./nginx
container_name: tinovisas-nginx
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
- uploads_data:/app/uploads
- ./nginx/html:/etc/nginx/html
- ./screenshots:/app/tinovisas/screenshots
- screenshots_data:/app/tinovisas/screenshots
depends_on:
- frontend
- backend
@@ -94,6 +92,7 @@ volumes:
postgres_data:
redis_data:
uploads_data:
screenshots_data:
networks:
tinovisas-network:
+3
View File
@@ -0,0 +1,3 @@
FROM nginx:alpine
COPY nginx.conf /etc/nginx/nginx.conf
COPY html /etc/nginx/html