Skip to content

Commit 50ffb66

Browse files
committed
refactor: update data directory configuration to use environment variable in docker-compose
1 parent c020753 commit 50ffb66

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.env.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ PRETALX_PORT=8080
2323

2424
# Filesystem Configuration
2525
# PRETALX_FILESYSTEM_MEDIA=/public/media
26+
PRETALX_DATA_DIR=./data
2627

2728
# Gunicorn Configuration (Optional)
2829
# GUNICORN_WORKERS=4

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ x-pretalx-env: &pretalx-env
2929
PRETALX_MAIL_SSL: ${PRETALX_MAIL_SSL:-False}
3030

3131
x-pretalx-volumes: &pretalx-volumes
32-
- ./data:/data
32+
- ${PRETALX_DATA_DIR:?Please set PRETALX_DATA_DIR}:/data
3333

3434
services:
3535
db:

0 commit comments

Comments
 (0)