File tree Expand file tree Collapse file tree 2 files changed +7
-10
lines changed Expand file tree Collapse file tree 2 files changed +7
-10
lines changed Original file line number Diff line number Diff line change 1
- version : ' 3'
2
-
3
1
services :
4
2
pgsql :
5
- image : postgres:15
6
- restart : always
3
+ image : postgres:16
7
4
environment :
8
5
POSTGRES_USER : root
9
6
POSTGRES_PASSWORD : root
10
7
POSTGRES_DB : yiitest
11
8
ports :
12
- # <Port exposed> : < PGSQL Port running inside container>
13
- - ' 5432:5432'
14
- expose :
15
- # Opens port 5432 on the container
16
- - ' 5432 '
9
+ # <Port exposed> : <PGSQL Port running inside container>
10
+ - 5432:5432
11
+ volumes :
12
+ - type : tmpfs
13
+ target : /var/lib/postgresql/data
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ DB must be accessible by address `127.0.0.1`. If you use PHP via docker containe
35
35
container. Use ` docker run ` command argument for it:
36
36
37
37
``` shell
38
- --network container:yiisoft-db-pgsql-db
38
+ --network container:yiisoft-db-pgsql-db
39
39
```
40
40
41
41
## Unit testing
You can’t perform that action at this time.
0 commit comments