Skip to content

Commit abc8e4a

Browse files
authored
Merge pull request #290 from bitfield-co/add-docker-compose-for-testing
Add a docker compose file for standing up a suitable database for
2 parents 54429c3 + 92ca93e commit abc8e4a

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

Diff for: README.md

+5
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,11 @@ docker run --rm \
220220
postgres
221221
```
222222

223+
Alternatively, use Docker Compose
224+
```shell
225+
docker compose up
226+
```
227+
223228
### Running tests
224229

225230
Create and initialize the test event store databases:

Diff for: docker-compose.yml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
version: "3.3"
2+
3+
services:
4+
db:
5+
image: postgres
6+
environment:
7+
PGDATA: /pgtmpfs
8+
POSTGRES_USER: postgres
9+
POSTGRES_PASSWORD: postgres
10+
ports:
11+
- "5432:5432"
12+
tmpfs:
13+
- "/pgtmpfs"
14+

0 commit comments

Comments
 (0)