Skip to content

Commit dee9f17

Browse files
authored
Improve docker-compose.yml (#358)
1 parent d002d24 commit dee9f17

File tree

2 files changed

+7
-10
lines changed

2 files changed

+7
-10
lines changed

docker-compose.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
1-
version: '3'
2-
31
services:
42
pgsql:
5-
image: postgres:15
6-
restart: always
3+
image: postgres:16
74
environment:
85
POSTGRES_USER: root
96
POSTGRES_PASSWORD: root
107
POSTGRES_DB: yiitest
118
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

docs/internals.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ DB must be accessible by address `127.0.0.1`. If you use PHP via docker containe
3535
container. Use `docker run` command argument for it:
3636

3737
```shell
38-
--network container:yiisoft-db-pgsql-db
38+
--network container:yiisoft-db-pgsql-db
3939
```
4040

4141
## Unit testing

0 commit comments

Comments
 (0)