mirror of
https://github.com/cytopia/devilbox.git
synced 2025-06-06 01:11:49 +00:00
REL-0.12 #128 Source environment variables
This commit is contained in:
parent
9752af1363
commit
4ad3596daa
@ -73,6 +73,17 @@ services:
|
|||||||
#context: https://github.com/cytopia/docker-${PHP_SERVER}.git#1
|
#context: https://github.com/cytopia/docker-${PHP_SERVER}.git#1
|
||||||
# context: https://github.com/cytopia/docker-${PHP_SERVER}.git
|
# 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:
|
environment:
|
||||||
|
|
||||||
##
|
##
|
||||||
|
24
env-example
24
env-example
@ -8,6 +8,8 @@
|
|||||||
###
|
###
|
||||||
### No need to rebuild any dockers!
|
### 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)
|
### You can also add DNS servers from your LAN (if any are available)
|
||||||
###
|
###
|
||||||
BIND_DNS_RESOLVER=8.8.8.8,8.8.4.4
|
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user