Skip to content

Commit

Permalink
Add docker postgres container
Browse files Browse the repository at this point in the history
  • Loading branch information
BitterPanda committed Feb 19, 2024
1 parent f4d6600 commit 9711a85
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions sample-apps/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,21 @@ services:
MONGO_INITDB_ROOT_PASSWORD: password
ports:
- "27017:27017"
postgres:
image: postgres:14-alpine
restart: always
volumes:
- POSTGRES:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=password
- POSTGRES_USER=root
- POSTGRES_DB=main_db
ports:
- "27016:27016"


volumes:
mongodb:
driver: local
postgres:
driver: local

0 comments on commit 9711a85

Please sign in to comment.