Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 3b37355

Browse files
authored
Update README.md
1 parent 6c0b3ce commit 3b37355

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

‎README.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,48 @@ PHP image including composer and these addional modules so need some time to com
4040
- certbot/certbot
4141
- php:8-fpm-alpine
4242
- mysql:8
43+
- postgres:15-alpine
4344

4445
You can customize the versions from ```docker-compose.yml``` and ```/php/Dockerfile```
46+
47+
## Exclude MySQL or PostgreSQL
48+
49+
Remove these sections from ```docker-compose.yml``` before run ```docker-compose up```
50+
### MySQL
51+
```
52+
mysql:
53+
image: mysql:8
54+
ports:
55+
- "6603:3306"
56+
environment:
57+
- MYSQL_ROOT_PASSWORD=0123456789
58+
- MYSQL_USER=dbuser
59+
- MYSQL_PASSWORD=9876543210
60+
- MYSQL_DATABASE=dbname
61+
- TZ=Asia/Jakarta
62+
volumes:
63+
- "mysql_data:/var/lib/mysql"
64+
```
65+
66+
```
67+
mysql_data: { driver: local }
68+
```
69+
70+
### PostgreSQL
71+
```
72+
pgsql:
73+
image: postgres:15-alpine
74+
restart: always
75+
ports:
76+
- "5432:5432"
77+
environment:
78+
- POSTGRES_USER=postgres
79+
- POSTGRES_PASSWORD=example
80+
- TZ=Asia/Jakarta
81+
volumes:
82+
- "pgsql_data:/var/lib/postgresql/data"
83+
```
84+
85+
```
86+
pgsql_data: { driver: local }
87+
```

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /