Skip to content

Commit

Permalink
add volume to database container, (#278)
Browse files Browse the repository at this point in the history
add db-data folder to gitignore
  • Loading branch information
HassanJbara authored Jul 13, 2024
1 parent 67e72da commit 956addb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -136,3 +136,5 @@ dmypy.json

# Pyre type checker
.pyre/

/db-data
8 changes: 7 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,14 @@ services:
- POSTGRES_DB=catanatron_db
ports:
- 5432:5432
volumes:
- ./db-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -d postgresql://catanatron:victorypoint@db:5432/catanatron_db"]
test:
[
"CMD-SHELL",
"pg_isready -d postgresql://catanatron:victorypoint@db:5432/catanatron_db",
]
interval: 5s
timeout: 5s
retries: 5
Expand Down

0 comments on commit 956addb

Please sign in to comment.