changed approach to shared volumes between nginx and app

This commit is contained in:
2026-06-06 15:26:07 +07:00
parent fddf5398fc
commit 553f90d482
3 changed files with 12 additions and 3 deletions
+3
View File
@@ -22,6 +22,7 @@ services:
context: .
dockerfile: Dockerfile
volumes:
- app-source:/var/www/html
- app-storage:/var/www/html/storage
- app-photos:/var/www/html/public/photos
environment:
@@ -49,12 +50,14 @@ services:
context: .
dockerfile: Dockerfile.nginx
volumes:
- app-source:/var/www/html:ro
- app-photos:/var/www/html/public/photos:ro
depends_on:
- app
restart: unless-stopped
volumes:
app-source:
mariadb_data:
app-storage:
app-photos: