Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@vrulevskyi
Forked from onjin/docker-compose.yml
Created March 7, 2018 03:12
Show Gist options
  • Star 11 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save vrulevskyi/307b08abddc9568cf8f9c1b429c1ab56 to your computer and use it in GitHub Desktop.
Save vrulevskyi/307b08abddc9568cf8f9c1b429c1ab56 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