Skip to content

Instantly share code, notes, and snippets.

@eduardomp
Created December 20, 2018 17:40
Show Gist options
  • Save eduardomp/d77b55c322b87f9a06fef39d8e5d2925 to your computer and use it in GitHub Desktop.
Save eduardomp/d77b55c322b87f9a06fef39d8e5d2925 to your computer and use it in GitHub Desktop.
Dockerfile - Postgres with custom postgresql.conf
FROM postgres:9.5
LABEL maintainer="Eduardo Medeiros Pereira - edu.medeirospereira@gmail.com"
ENTRYPOINT ["docker-entrypoint.sh"]
COPY postgresql.conf /etc/postgresql/postgresql.conf
EXPOSE 5432
CMD ["postgres", "-c", "config_file=/etc/postgresql/postgresql.conf"]
@eduardomp
Copy link
Author

Needs to have a customized postgresql.conf file in same directory of Dockerfile.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment