feat: add PostgreSQL support with Compose profiles
- Add db-postgres service behind 'postgres' profile (MariaDB moved to 'mariadb' profile) - Both databases aliased as 'db'; PHP waits for healthy DB (Compose >= 2.20) - Pass DB_TYPE to the PHP container - New PHP extensions: pdo_pgsql, gd, bcmath - Upgrade Node.js to v26.x - Update README with database selection docs and v1.2.0 changelog
This commit is contained in:
1 parent
d6493fb02d
commit
89fd137aca
5 files changed
+199
-55
No files matched your search
+12
-2
@@ -22,7 +22,17 @@ PROJECT_NAME=''
|
||||
# Database Configurations #
|
||||
#=========================#
|
||||
|
||||
MYSQL_ROOT_PASSWORD=root
|
||||
MYSQL_DATABASE=database
|
||||
# Pick one: postgres | mariadb
|
||||
COMPOSE_PROFILES=postgres
|
||||
DB_TYPE=postgres
|
||||
|
||||
# Postgres
|
||||
POSTGRES_DB=app
|
||||
POSTGRES_USER=app
|
||||
POSTGRES_PASSWORD=secret
|
||||
|
||||
# MariaDB
|
||||
MYSQL_ROOT_PASSWORD=rootsecret
|
||||
MYSQL_DATABASE=app
|
||||
MYSQL_USER_DATABASE=app
|
||||
MYSQL_PASSWORD_DATABASE=secret
|
||||
Reference in new issue
Block a user