Bake nginx config into image; use named volume for screenshots
This commit is contained in:
+3
-4
@@ -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:
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
FROM nginx:alpine
|
||||
COPY nginx.conf /etc/nginx/nginx.conf
|
||||
COPY html /etc/nginx/html
|
||||
Reference in New Issue
Block a user