Skip to content

Commit

Permalink
feat(server): implemented connecting to database
Browse files Browse the repository at this point in the history
  • Loading branch information
szattila98 committed Jul 17, 2023
1 parent 043ccea commit 0b920a4
Show file tree
Hide file tree
Showing 10 changed files with 1,316 additions and 92 deletions.
8 changes: 8 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ services:
- POSTGRES_PASSWORD=password
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
interval: 10s
timeout: 5s
retries: 5

server:
container_name: binge-at-home-server
Expand All @@ -17,6 +22,9 @@ services:
dockerfile: ./Dockerfile
ports:
- "8000:8000"
depends_on:
database:
condition: service_healthy

client:
container_name: binge-at-home-client
Expand Down
Loading

0 comments on commit 0b920a4

Please # to comment.