mirror of
https://github.com/Cian-H/iform-invenio.git
synced 2026-08-17 00:42:49 +01:00
Updated config for local development
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user