make it possible to specify mysql host and port

This commit is contained in:
David Siaw 2017-06-12 17:31:38 +09:00
parent 770330ef47
commit fb59de1fb0
2 changed files with 4 additions and 2 deletions

View file

@ -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

View file

@ -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}'