From 92ca93efc82054c868b93e3fbea04b16c58f09a5 Mon Sep 17 00:00:00 2001 From: Benjamin Moss Date: Thu, 19 Sep 2024 11:39:18 -0400 Subject: [PATCH] Add a docker compose file for standing up a suitable database for testing --- README.md | 5 +++++ docker-compose.yml | 14 ++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 docker-compose.yml diff --git a/README.md b/README.md index 5ae772d6..f7eb1756 100644 --- a/README.md +++ b/README.md @@ -220,6 +220,11 @@ docker run --rm \ postgres ``` +Alternatively, use Docker Compose +```shell +docker compose up +``` + ### Running tests Create and initialize the test event store databases: diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 00000000..d3c4cf11 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,14 @@ +version: "3.3" + +services: + db: + image: postgres + environment: + PGDATA: /pgtmpfs + POSTGRES_USER: postgres + POSTGRES_PASSWORD: postgres + ports: + - "5432:5432" + tmpfs: + - "/pgtmpfs" +