Skip to content

Commit c1f8486

Browse files
improve tp
1 parent 4764752 commit c1f8486

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

template/.env

+7-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,13 @@ W9_NETWORK=websoft9
4141
#### ----------------------------------------------------------------------------------------- ####
4242

4343

44-
# Below environment is created by apphub
44+
# Below environment is created by this app
45+
46+
WORDPRESS_DB_HOST=$W9_ID-mariadb
47+
WORDPRESS_DB_USER=wordpress #if use postgresql, it need set to postgres
48+
WORDPRESS_DB_PASSWORD=$W9_POWER_PASSWORD
49+
WORDPRESS_DB_NAME=wordpress
50+
4551

4652
#W9_NAME=""
4753
#W9_RCODE=""

template/docker-compose.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ services:
3535
volumes:
3636
- mysql_data:/var/lib/mysql
3737
environment:
38-
MYSQL_DATABASE: $W9_ID
39-
MYSQL_USER: $W9_ID
38+
MYSQL_DATABASE: $WORDPRESS_DB_NAME
39+
MYSQL_USER: $WORDPRESS_DB_USER
4040
MYSQL_PASSWORD: $W9_POWER_PASSWORD
4141
MYSQL_ROOT_PASSWORD: $W9_POWER_PASSWORD
4242

0 commit comments

Comments
 (0)