File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 1
- version : ' 3.8'
2
-
3
1
services :
4
2
postgres :
5
- image : postgres:17
3
+ image : postgres:${POSTGRES_VERSION:-17}
6
4
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}
10
8
ports :
11
- - " 5432:5432"
9
+ - " ${POSTGRES_PORT:- 5432} :5432"
12
10
volumes :
13
11
- postgres_data:/var/lib/postgresql/data
14
12
healthcheck :
Original file line number Diff line number Diff line change @@ -21,12 +21,14 @@ docker-compose up -d
21
21
Or use a plain Docker command:
22
22
23
23
``` 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
25
25
```
26
26
27
27
### Run the Tests
28
28
29
29
``` bash
30
+ # Install the latest dependencies
31
+ composer update
30
32
# Run the integration tests
31
33
composer run-integration-tests
32
34
```
You can’t perform that action at this time.
0 commit comments