Skip to content

Commit

Permalink
Add a docker compose file for standing up a suitable database for
Browse files Browse the repository at this point in the history
testing
  • Loading branch information
drteeth committed Sep 19, 2024
1 parent 5e17ea1 commit 92ca93e
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
14 changes: 14 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit 92ca93e

Please sign in to comment.