Skip to content

Commit 6789ccd

Browse files
committed
Add config fo read only support
1 parent 7770434 commit 6789ccd

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ services:
1010
environment:
1111
- HTTP_PORT=8080
1212
- READ_ONLY=false
13+
# - READ_ONLY=true
1314
# runzope does not support envsubst directly, so we use bash to execute the command and perform the variable substitution before running zope. This allows us to dynamically configure the HTTP port based on the environment variable.
1415
# command: bash -c "exec runzope -X debug-mode=on --configure <( envsubst '$\HTTP_PORT' < etc/zope.conf )"
1516
volumes:

docker/zope/etc/zope.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ debug-mode on
3434
# We can enlarge the cache to reduce network roundtrips, not sure this is neccessary
3535
# cache-size 200MB
3636
client-label develop $HTTP_PORT
37+
read-only $READ_ONLY
3738
</zeoclient>
3839
mount-point /
3940
</zodb_db>

0 commit comments

Comments
 (0)