changed approach to shared volumes between nginx and app
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user