Skip to content

Commit

Permalink
Merge pull request #290 from bitfield-co/add-docker-compose-for-testing
Browse files Browse the repository at this point in the history
Add a docker compose file for standing up a suitable database for
  • Loading branch information
jwilger authored Oct 21, 2024
2 parents 54429c3 + 92ca93e commit abc8e4a
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 abc8e4a

Please sign in to comment.