make it possible to specify mysql host and port
This commit is contained in:
parent
770330ef47
commit
fb59de1fb0
|
@ -6,6 +6,8 @@ RUN cd app && sh container-install.sh
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
ENV MYSQL_HOST localhost
|
||||||
|
ENV MYSQL_PORT 3306
|
||||||
ENV MYSQL_DATABASE cytube
|
ENV MYSQL_DATABASE cytube
|
||||||
ENV MYSQL_USER cytube
|
ENV MYSQL_USER cytube
|
||||||
ENV MYSQL_PASSWORD nico_best_girl
|
ENV MYSQL_PASSWORD nico_best_girl
|
||||||
|
|
|
@ -4,8 +4,8 @@
|
||||||
# user: username to authenticate as
|
# user: username to authenticate as
|
||||||
# password: password for user
|
# password: password for user
|
||||||
mysql:
|
mysql:
|
||||||
server: 'localhost'
|
server: '${MYSQL_HOST}'
|
||||||
port: 3306
|
port: ${MYSQL_PORT}
|
||||||
database: '${MYSQL_DATABASE}'
|
database: '${MYSQL_DATABASE}'
|
||||||
user: '${MYSQL_USER}'
|
user: '${MYSQL_USER}'
|
||||||
password: '${MYSQL_PASSWORD}'
|
password: '${MYSQL_PASSWORD}'
|
||||||
|
|
Loading…
Reference in a new issue