Skip to content

Instantly share code, notes, and snippets.

@kafle1
Last active March 2, 2023 09:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kafle1/bd19ecbfe2072cdc293fd0b6bf766921 to your computer and use it in GitHub Desktop.
Save kafle1/bd19ecbfe2072cdc293fd0b6bf766921 to your computer and use it in GitHub Desktop.
Postgres test db docker
version: '3'
services:
pgdb:
image: postgres:latest
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
ports:
- "5432:5432"
volumes:
- ./pgdata:/var/lib/postgresql/data
version: '3'
services:
mongo-db:
image: mongo:latest
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: example
MONGO_INITDB_DATABASE: mydb
ports:
- "27017:27017"
volumes:
- ./mongodata:/data/db
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment