Skip to content
Discussion options

You must be logged in to vote

There is an internal instance that is booted up when you add the ENABLE_POSTGRES=true environment variable. However, if you'd like to use your own instance, you can do that as well!

Just fill out the DB variables and don't add ENABLE_POSTGRES=true or change it to ENABLE_POSTGRES=false to prevent the internal instance from running.

If you just set these variables:

- DB_CONNECTION=pgsql
- DB_HOST=localhost
- DB_PORT=${PG_PORT:-5432}
- DB_DATABASE=${PG_DATABASE}
- DB_USERNAME=${PG_USER}
- DB_PASSWORD=${PG_PASSWORD}

you can connect to whichever PG instance you have running 😉

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@hektyc
Comment options

Answer selected by sparkison
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants