Skip to content

Commit

Permalink
[Chore] Create docker-compose.yml file for local PostgreSQL instance (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
sherryhli committed Feb 15, 2023
1 parent 9d92bfe commit 8cba089
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
version: "3.7"

services:
db:
container_name: rcd_db
image: postgres:12-alpine
ports:
- 5432:5432
volumes:
- postgres_data:/var/lib/postgresql/data/
env_file:
- ./.env
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5

volumes:
postgres_data:

0 comments on commit 8cba089

Please sign in to comment.