Skip to content

Instantly share code, notes, and snippets.

@arkadius
Created September 25, 2024 13:37
Show Gist options
  • Save arkadius/307067e9140a180ad85b89aef586d232 to your computer and use it in GitHub Desktop.
Save arkadius/307067e9140a180ad85b89aef586d232 to your computer and use it in GitHub Desktop.
postgres-setup:
image: postgres:16.4
depends_on:
postgres:
condition: service_healthy
networks:
- nussknacker-iceberg-net
environment:
PGHOST: "postgres"
PGDATABASE: "nu-db"
PGUSER: "nu"
PGPASSWORD: "nupassword"
DB: nessie
USER: nessie
PASSWORD: nessie
volumes:
- ./postgres/create-db.sh:/create-db.sh
entrypoint: ["bash", "/create-db.sh"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment