From 4d7dfca26ae9c9b19cb07d781ef0b58e1a4a03b4 Mon Sep 17 00:00:00 2001 From: "Patrik J. Braun" Date: Sun, 6 Feb 2022 16:49:19 +0100 Subject: [PATCH] Adding read-only to docker-compose.yml fixes #332 --- docker/docker-compose/default/docker-compose.yml | 2 +- docker/docker-compose/pigallery2-only/docker-compose.yml | 2 +- docker/docker-compose/with-mysql/docker-compose.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docker/docker-compose/default/docker-compose.yml b/docker/docker-compose/default/docker-compose.yml index d2e8b37e..cdacc76b 100644 --- a/docker/docker-compose/default/docker-compose.yml +++ b/docker/docker-compose/default/docker-compose.yml @@ -21,7 +21,7 @@ services: volumes: - "./pigallery2/config:/app/data/config" # CHANGE ME - "db-data:/app/data/db" - - "./pigallery2/images:/app/data/images" # CHANGE ME + - "./pigallery2/images:/app/data/images:ro" # CHANGE ME, ':ro' mean read-only - "./pigallery2/tmp:/app/data/tmp" # CHANGE ME expose: - "80" diff --git a/docker/docker-compose/pigallery2-only/docker-compose.yml b/docker/docker-compose/pigallery2-only/docker-compose.yml index 9799e40f..161487ea 100644 --- a/docker/docker-compose/pigallery2-only/docker-compose.yml +++ b/docker/docker-compose/pigallery2-only/docker-compose.yml @@ -8,7 +8,7 @@ services: volumes: - "./pigallery2/config:/app/data/config" # CHANGE ME - "db-data:/app/data/db" - - "./pigallery2/images:/app/data/images" # CHANGE ME + - "./pigallery2/images:/app/data/images:ro" # CHANGE ME, ':ro' mean read-only - "./pigallery2/tmp:/app/data/tmp" # CHANGE ME ports: - 80:80 diff --git a/docker/docker-compose/with-mysql/docker-compose.yml b/docker/docker-compose/with-mysql/docker-compose.yml index d11bab38..d691dbfe 100644 --- a/docker/docker-compose/with-mysql/docker-compose.yml +++ b/docker/docker-compose/with-mysql/docker-compose.yml @@ -33,7 +33,7 @@ services: volumes: - "./pigallery2/config:/app/data/config" # CHANGE ME - "db-data:/app/data/db" - - "./pigallery2/images:/app/data/images" # CHANGE ME + - "./pigallery2/images:/app/data/images:ro" # CHANGE ME, ':ro' mean read-only - "./pigallery2/tmp:/app/data/tmp" # CHANGE ME expose: - "80"