Skip to content

Commit 9d267ad

Browse files
authored
chore: improve contributor DX (#370)
1 parent bb6a6b6 commit 9d267ad

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

docker-compose.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
1-
version: '3.8'
2-
31
services:
42
postgres:
5-
image: postgres:17
3+
image: postgres:${POSTGRES_VERSION:-17}
64
environment:
7-
POSTGRES_USER: postgres
8-
POSTGRES_PASSWORD: postgres
9-
POSTGRES_DB: postgres_doctrine_test
5+
POSTGRES_USER: ${POSTGRES_USER:-postgres}
6+
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-postgres}
7+
POSTGRES_DB: ${POSTGRES_DB:-postgres_doctrine_test}
108
ports:
11-
- "5432:5432"
9+
- "${POSTGRES_PORT:-5432}:5432"
1210
volumes:
1311
- postgres_data:/var/lib/postgresql/data
1412
healthcheck:

tests/Integration/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,14 @@ docker-compose up -d
2121
Or use a plain Docker command:
2222

2323
```bash
24-
docker run --name postgres-doctrine-test -e POSTGRES_PASSWORD=postgres -e POSTGRES_USER=postgres -e POSTGRES_DB=postgres_doctrine_test -p 5432:5432 -d postgres:14
24+
docker run --name postgres-doctrine-test -e POSTGRES_PASSWORD=postgres -e POSTGRES_USER=postgres -e POSTGRES_DB=postgres_doctrine_test -p 5432:5432 -d postgres:17
2525
```
2626

2727
### Run the Tests
2828

2929
```bash
30+
# Install the latest dependencies
31+
composer update
3032
# Run the integration tests
3133
composer run-integration-tests
3234
```

0 commit comments

Comments
 (0)