Created
May 26, 2020 20:02
-
-
Save edtjones/c9ee3f8c5d919e40713ed4603d84b79f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM urbica/martin | |
| RUN mkdir -p /app/config | |
| COPY config/config.yaml /app/config/config.yaml | |
| WORKDIR /app | |
| ENTRYPOINT /app/config/docker/entrypoint.sh $DATABASE_URL $PORT |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| set -e | |
| config='/app/config/config.yaml' | |
| sed -i '/^connection_string:.*/d' $config | |
| sed -i '/^listen_addresses:.*/d' $config | |
| echo connection_string: $1 >> $config | |
| echo listen_addresses: "0.0.0.0:$2" >> $config | |
| martin --config /app/config/config.yaml |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment