Skip to content

Instantly share code, notes, and snippets.

@lanzani
Created February 22, 2023 20:28
Show Gist options
  • Save lanzani/d4cfa93d0313a2c9299e57d6b4ec06f9 to your computer and use it in GitHub Desktop.
Save lanzani/d4cfa93d0313a2c9299e57d6b4ec06f9 to your computer and use it in GitHub Desktop.
Create a test postgres database in one command.
version: "3"
services:
postgres-test:
image: postgres:15.1-alpine
ports:
- "5432:5432" # If port 5432 is already in use on the host machine, you can change this with: "5435:5432"
environment:
- POSTGRES_PASSWORD=12345678
- POSTGRES_DB=clientsdashboard
- POSTGRES_USERNAME=postgres
volumes:
- postgres-db:/var/lib/postgresql/data
volumes:
postgres-db:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment