diff --git a/docker-compose.yml b/docker-compose.yml index 1903a0b..351e81c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -13,6 +13,13 @@ services: volumes: - ./user:/var/www/html/user - ./php/php-local.ini:/usr/local/etc/php/conf.d/php-local.ini + # Grav stages form uploads in tmp/forms// before the submit moves + # them into the page folder. The image declares /var/www/html as a VOLUME, + # so without this it lives in an ANONYMOUS volume that is discarded on any + # `docker compose up` that recreates the container — dropping the photos of + # a post that was filled in but not yet submitted. Naming it gives the + # staging area its own lifecycle. + - grav_tmp:/var/www/html/tmp restart: unless-stopped travel-memories: @@ -24,3 +31,6 @@ services: - ./user/pages:/app/pages env_file: .env user: "${UID}:${GID}" + +volumes: + grav_tmp: diff --git a/travel-blog-intotheeast.code-workspace b/travel-blog-intotheeast.code-workspace index 362d7c2..26a18ea 100644 --- a/travel-blog-intotheeast.code-workspace +++ b/travel-blog-intotheeast.code-workspace @@ -3,5 +3,8 @@ { "path": "." } - ] + ], + "settings": { + "makefile.configureOnOpen": false + } } \ No newline at end of file