Skip to content

Instantly share code, notes, and snippets.

@edtjones
Created May 26, 2020 20:02
Show Gist options
  • Select an option

  • Save edtjones/c9ee3f8c5d919e40713ed4603d84b79f to your computer and use it in GitHub Desktop.

Select an option

Save edtjones/c9ee3f8c5d919e40713ed4603d84b79f to your computer and use it in GitHub Desktop.
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
#!/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