File tree Expand file tree Collapse file tree 1 file changed +7
-12
lines changed Expand file tree Collapse file tree 1 file changed +7
-12
lines changed Original file line number Diff line number Diff line change @@ -4,19 +4,16 @@ services:
44 image : phplist/base-distribution:latest
55 container_name : base-distribution-app
66 ports :
7- - " 8081:80"
7+ - " ${PHPLIST_PORT:- 8081} :80"
88 environment :
99 # Database connection (mirrors config/parameters.yml expectations)
10- # PHPLIST_DATABASE_DRIVER: pdo_mysql
11- # PHPLIST_DATABASE_HOST: db
12- # PHPLIST_DATABASE_PORT: 3306
1310 PHPLIST_DATABASE_NAME : phplistdb
14- PHPLIST_DATABASE_USER : phplist
15- PHPLIST_DATABASE_PASSWORD : phplist
16- # To use PostgreSQL instead, override these (e.g. with `-e` or a compose override file):
17- PHPLIST_DATABASE_DRIVER : pdo_pgsql
18- PHPLIST_DATABASE_HOST : postgres
19- PHPLIST_DATABASE_PORT : 5432
11+ PHPLIST_DATABASE_USER : ${PHPLIST_DATABASE_USER:- phplist}
12+ PHPLIST_DATABASE_PASSWORD : ${PHPLIST_DATABASE_PASSWORD:- phplist}
13+ PHPLIST_DATABASE_DRIVER : ${PHPLIST_DATABASE_DRIVER:-pdo_mysql} # pdo_pgsql
14+ PHPLIST_DATABASE_HOST : ${PHPLIST_DATABASE_HOST:-db} # postgres
15+ PHPLIST_DATABASE_PORT : ${PHPLIST_DATABASE_PORT:-3306} # 5432
16+
2017 # Symfony environment
2118 APP_ENV : prod
2219 APP_DEBUG : " 0"
@@ -64,8 +61,6 @@ services:
6461 retries : 10
6562 networks : [ appnet ]
6663
67-
68-
6964volumes :
7065 db_data :
7166 pg_data :
You can’t perform that action at this time.
0 commit comments