Skip to content

Instantly share code, notes, and snippets.

@sandeep-cs-dev
Forked from onjin/docker-compose.yml
Created March 24, 2023 18:17
Show Gist options
  • Save sandeep-cs-dev/04c24c8f4aa286fa2ca51e05b7720868 to your computer and use it in GitHub Desktop.
Save sandeep-cs-dev/04c24c8f4aa286fa2ca51e05b7720868 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