Skip to content

Instantly share code, notes, and snippets.

@ZeroCoolHacker
Forked from onjin/docker-compose.yml
Created January 7, 2021 11:02
Show Gist options
  • Save ZeroCoolHacker/95fa2acdd069f27d738c584f4507cb3e to your computer and use it in GitHub Desktop.
Save ZeroCoolHacker/95fa2acdd069f27d738c584f4507cb3e 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