Skip to content

Instantly share code, notes, and snippets.

@winarcooo
Forked from onjin/docker-compose.yml
Created May 21, 2019 04:21
Show Gist options
  • Save winarcooo/565885fde4428c4db64797026d01d68a to your computer and use it in GitHub Desktop.
Save winarcooo/565885fde4428c4db64797026d01d68a to your computer and use it in GitHub Desktop.
example docker compose for postgresql with db init script
postgres:
image: postgres:9.4
volumes:
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
create table sometable(id int);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment