REL-0.12 #128 Source environment variables

This commit is contained in:
cytopia 2017-09-26 19:53:31 +02:00
parent 9752af1363
commit 4ad3596daa
No known key found for this signature in database
GPG Key ID: 6D56EDB8695128A2
2 changed files with 35 additions and 0 deletions

View File

@ -73,6 +73,17 @@ services:
#context: https://github.com/cytopia/docker-${PHP_SERVER}.git#1
# context: https://github.com/cytopia/docker-${PHP_SERVER}.git
##
## Custom variables
##
## Source all variables defined in .env
## This makes any custom variable available in each PHP/HHVM container
##
env_file:
- ./.env
environment:
##

View File

@ -8,6 +8,8 @@
###
### No need to rebuild any dockers!
###
### For custom variables, scroll to the bottom
###
###
@ -483,3 +485,25 @@ HOST_PORT_BIND=1053
### You can also add DNS servers from your LAN (if any are available)
###
BIND_DNS_RESOLVER=8.8.8.8,8.8.4.4
################################################################################
###
### 11. Custom variables
###
################################################################################
###
### Any variable defined in this file will be available
### as environment variables to your PHP/HHV Docker container.
###
### This might be useful to set application environment and retriev
### them via: <?php getenv('MY_APPLICATION_ENV'); ?>
###
###
### Example:
### <?php echo getenv('Foo');?> would produce: 'some value'
###
#Foo=some value