diff --git a/.gitignore b/.gitignore index 0a3ca061..efaa3648 100644 --- a/.gitignore +++ b/.gitignore @@ -136,3 +136,5 @@ dmypy.json # Pyre type checker .pyre/ + +/db-data \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 56cec4d3..63366d1a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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