Skip to content

Instantly share code, notes, and snippets.

@Maikon
Forked from onjin/docker-compose.yml
Created September 19, 2022 08:19
Show Gist options
  • Select an option

  • Save Maikon/10b63e08a5c07621ce9885fc3ec0089d to your computer and use it in GitHub Desktop.

Select an option

Save Maikon/10b63e08a5c07621ce9885fc3ec0089d 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