Skip to content

Commit 6221383

Browse files
committed
Fixed setting vars
Fixes #58
1 parent a966c5a commit 6221383

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

docker/httpd/entrypoint.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ cp /usr/local/apache2/conf/.docker-vhost.conf.original /usr/local/apache2/conf
4646
/bin/sed -i "s@<FPM_HOST>@${MAIN_PORT_9000_TCP_ADDR}@" /usr/local/apache2/conf/docker-vhost.conf
4747
/bin/sed -i "s@<FPM_PORT>@${MAIN_PORT_9000_TCP_PORT}@" /usr/local/apache2/conf/docker-vhost.conf
4848
/bin/sed -i "s@<ALIAS_DOMAIN>@${ALIAS_DOMAIN}@" /usr/local/apache2/conf/docker-vhost.conf
49+
/bin/sed -i "s@<MYSQL_PASSWORD>@${MYSQL_PASSWORD}@" /usr/local/apache2/conf/docker-vhost.conf
50+
/bin/sed -i "s@<MYSQL_USER>@${MYSQL_USER}@" /usr/local/apache2/conf/docker-vhost.conf
51+
/bin/sed -i "s@<MYSQL_DATABASE>@${MYSQL_DATABASE}@" /usr/local/apache2/conf/docker-vhost.conf
4952

5053
#############################
5154
## COMMAND

docker/nginx/entrypoint.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ cp /opt/docker/vhost.conf /etc/nginx/conf.d/vhost.conf
3030
/bin/sed -i "s@<FPM_HOST>@${MAIN_PORT_9000_TCP_ADDR}@" /etc/nginx/conf.d/vhost.conf
3131
/bin/sed -i "s@<FPM_PORT>@${MAIN_PORT_9000_TCP_PORT}@" /etc/nginx/conf.d/vhost.conf
3232
/bin/sed -i "s@<ALIAS_DOMAIN>@${ALIAS_DOMAIN}@" /etc/nginx/conf.d/vhost.conf
33+
/bin/sed -i "s@<MYSQL_PASSWORD>@${MYSQL_PASSWORD}@" /etc/nginx/conf.d/vhost.conf
34+
/bin/sed -i "s@<MYSQL_USER>@${MYSQL_USER}@" /etc/nginx/conf.d/vhost.conf
35+
/bin/sed -i "s@<MYSQL_DATABASE>@${MYSQL_DATABASE}@" /etc/nginx/conf.d/vhost.conf
3336

3437
#############################
3538
## COMMAND

0 commit comments

Comments
 (0)