Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create app schema automatically #508

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

snpaul22
Copy link

@snpaul22 snpaul22 commented May 4, 2024

When running Lube Logger with a Postgres backend, Lube Logger requires you to create an app schema in the database before the program will be functional. This commit is two part:

  1. Created the initialization script that will check the Postgres db for the existence of the app schema. It will create it automatically at start if it doesn't exist. It will skip and continue starting if it does exist.
  2. Added a bind mount for the init.sql initialization script to the docker-entrypoint-initdb.d make the script run on container startup.

Added Postgres volume bind for initialization script
Script checks for "app" schema in Postgres during startup. It will create the schema automatically if it doesn't exist or skip if it does exist.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants