You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The location of the postgres DB isn't important at the docker build time only at the docker run time. So it makes sense to create a helper script that configures the config to use the DB host given from an Env variable and runs the webserver afterwards and calls it perhaps entry.sh similar to this:
sed -i "s/localhost/${R3_DB_HOST}/g" config_template.json
/opt/r3/r3 -run -config /opt/r3/data/config.json
The last like of the docker file would look like:
CMD ["entry.sh"]
This way you don't need to rebuild the docker image when the db changed.
The text was updated successfully, but these errors were encountered:
mmuller88
changed the title
DB host in entry.sh script
Feature: DB host during docker run time from entry.sh script
Jan 2, 2023
The location of the postgres DB isn't important at the docker build time only at the docker run time. So it makes sense to create a helper script that configures the config to use the DB host given from an Env variable and runs the webserver afterwards and calls it perhaps entry.sh similar to this:
sed -i "s/localhost/${R3_DB_HOST}/g" config_template.json /opt/r3/r3 -run -config /opt/r3/data/config.json
The last like of the docker file would look like:
This way you don't need to rebuild the docker image when the db changed.
The text was updated successfully, but these errors were encountered: