Add a Nginx template using a dynamic hostname from .env

This commit is contained in:
Vincent Letourneau
2017-09-18 18:49:29 +02:00
parent 58613a90e3
commit df3560700b
5 changed files with 84 additions and 28 deletions

4
.env
View File

@@ -2,6 +2,10 @@
# See https://docs.docker.com/compose/environment-variables/#the-env-file
# Nginx
NGINX_HOST=localhost
# MySQL
MYSQL_HOST=mysql
MYSQL_DATABASE=test
MYSQL_ROOT_USER=root