Updated config for local development

This commit is contained in:
2026-08-13 17:38:17 +01:00
parent a3502b6735
commit 485b3fa80a
9 changed files with 70 additions and 35 deletions
@@ -1,8 +1,8 @@
FROM docker.io/library/nginx
COPY nginx.conf /etc/nginx/nginx.conf
COPY conf.d/* /etc/nginx/conf.d/
COPY test.key /etc/ssl/private/test.key
COPY test.crt /etc/ssl/certs/test.crt
COPY test.key /etc/ssl/private/invenio.key
COPY test.crt /etc/ssl/certs/invenio.crt
COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
CMD ["nginx", "-g", "daemon off;"]
@@ -1,7 +1,10 @@
#!/bin/bash
set -e
# Configure postgres to archive WAL logs via wal-g
echo "archive_mode = on" >> "$PGDATA/postgresql.conf"
echo "archive_command = 'wal-g wal-push %p'" >> "$PGDATA/postgresql.conf"
echo "archive_timeout = 60" >> "$PGDATA/postgresql.conf"
if [ "$ENABLE_WALG" = "true" ]; then
echo "archive_mode = on" >> "$PGDATA/postgresql.conf"
echo "archive_command = 'wal-g wal-push %p'" >> "$PGDATA/postgresql.conf"
echo "archive_timeout = 60" >> "$PGDATA/postgresql.conf"
else
echo "archive_mode = off" >> "$PGDATA/postgresql.conf"
fi