Created
February 22, 2023 20:28
-
-
Save lanzani/d4cfa93d0313a2c9299e57d6b4ec06f9 to your computer and use it in GitHub Desktop.
Create a test postgres database in one command.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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