feat: add docker-compose.yaml to set up postgres

This commit is contained in:
TAMARA LIPOWSKI
2025-09-02 17:06:08 -04:00
committed by Tamara
parent 8205c2a8d5
commit c89fbee0ae
4 changed files with 325 additions and 368 deletions

View File

@@ -17,8 +17,9 @@ RUN cd /tmp \
&& cd .. && rm -r pg_cron-${PGCRON_VERSION} v${PGCRON_VERSION}.tar.gz
# Add configuration to postgresql.conf template
# Start with postgres database, then switch to tycho_indexer_0 after it's created
RUN echo "shared_preload_libraries = 'pg_partman_bgw,pg_cron'" >> /usr/local/share/postgresql/postgresql.conf.sample \
&& echo "cron.database_name = 'tycho_indexer_0'" >> /usr/local/share/postgresql/postgresql.conf.sample
&& echo "cron.database_name = 'tycho_indexer_0'" >> /usr/local/share/postgresql/postgresql.conf.sample
# Stay as root user for PostgreSQL to work properly
# USER 1001