Skip to content

Instantly share code, notes, and snippets.

@duyuxuan
Forked from onjin/docker-compose.yml
Created August 26, 2021 10:22
Show Gist options
  • Save duyuxuan/77d1cf3f3683f7d909e5b725b2a02b3b to your computer and use it in GitHub Desktop.
Save duyuxuan/77d1cf3f3683f7d909e5b725b2a02b3b 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