Skip to content

Instantly share code, notes, and snippets.

@ololx
Forked from onjin/docker-compose.yml
Created October 3, 2021 14:24
Show Gist options
  • Save ololx/acf9d9f40949d5e774b54098ebc1e272 to your computer and use it in GitHub Desktop.
Save ololx/acf9d9f40949d5e774b54098ebc1e272 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