Advertisement
Guest User

.env

a guest
Nov 8th, 2018
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 16.80 KB | None | 0 0
  1. ###
  2. ###  ---------------------------------------------------
  3. ###  D E V I L B O X   R U N - T I M E   S E T T I N G S
  4. ###  ---------------------------------------------------
  5. ###
  6. ###  All the following settings are applied during
  7. ###  $ docker-compose up
  8. ###
  9. ###  No need to rebuild any dockers!
  10. ###
  11. ###  For custom variables, scroll to the bottom
  12. ###
  13.  
  14.  
  15. ###
  16. ### Show all executed commands in each
  17. ### docker image during docker-compose up?
  18. ###
  19. ### 1: Yes
  20. ### 0: Noa
  21. DEBUG_COMPOSE_ENTRYPOINT=1
  22.  
  23.  
  24. ###
  25. ### Log to file or Docker logs.
  26. ###
  27. ### Logging to file means log files are available under log/
  28. ### on your host operating system.
  29. ### Logging to Docker logs means log files are streamed to
  30. ### stdout and stderr.
  31. ###
  32. ### 1: Log to Docker logs
  33. ### 0: Log to file
  34. ###
  35. DOCKER_LOGS=1
  36.  
  37.  
  38. ###
  39. ### Relative or absolute path to the devilbox repository.
  40. ### (Used as a prefix for all mount paths)
  41. ### There is no need to change this.
  42. ###
  43. ### The only exception is for OSX users wanting to use NFS
  44. ### mounts instead of Filesystem mounts due to degraded performance
  45. ### on OSX.
  46. ###
  47. ### Note: When changing this variable you must re-create the container.
  48. ###       Simply remove it, it will be auto-created during the next start:
  49. ###
  50. ### $ docker-compose rm -f
  51. ###
  52. DEVILBOX_PATH=.
  53.  
  54.  
  55. ###
  56. ### At what IP address should the docker services listen
  57. ### on the Host computer?
  58. ###
  59. ### The specified default should be fine for Linux and OSX (127.0.0.1:).
  60. ### If you are on windows, you will probably have to change
  61. ### it to the IP address of the docker machine.
  62. ###
  63. ### a.) Leave blank, to listen on all interfaces (no trailing color ':')
  64. ###    LOCAL_LISTEN_ADDR=
  65. ### b.) If an IP is specified, note the trailing colon ':'
  66. ###    LOCAL_LISTEN_ADDR=127.0.0.1:
  67. ###
  68. LOCAL_LISTEN_ADDR=
  69.  
  70.  
  71. ###
  72. ### This is the domain suffix your projects will be made available
  73. ### with mass-virtual-hosting.
  74. ### It is also required for the internal DNS server to be setup.
  75. ###
  76. ### Note: Only ALPHA ([a-zA-Z]+) characters are supported.
  77. ###
  78. ### Example:
  79. ###   TLD_SUFFIX=loc
  80. ### Makes your project available under xxxx.loc
  81. ###
  82. ### Example:
  83. ###   TLD_SUFFIX=local
  84. ### Makes your project available under xxxx.local
  85. ###
  86. TLD_SUFFIX=loc
  87.  
  88.  
  89. ###
  90. ### Optional DNS configuration
  91. ### Allows you to add extra DNS records (above the wildcard entry)
  92. ### Useful if your host computer run other Docker services that you want to connect to or reach
  93. ### from within the Devilbox network by a custom hostname.
  94. ###
  95. ### Format:
  96. ### -------
  97. ### Resolve any custom defined hostname to an IP address (useable inside container and host os)
  98. ###     EXTRA_HOSTS=<hostname>=<ip>[,<hostname>=<ip>]
  99. ###
  100. ### Resolve any custom defined hostname to whatever IP address a CNAME resolves to
  101. ### (Useable inside the container and host OS).
  102. ### Note: CNAME must be resolvable by Google DNS
  103. ###     EXTRA_HOSTS=<hostname>=<CNAME>[,<hostname>=<CNAME>]
  104. ###
  105. ### Examples:
  106. ### ---------
  107. ### EXTRA_HOSTS=hostname.loc=1.2.3.4
  108. ### EXTRA_HOSTS=host.loc=1.2.3.4,host.example.org=3.4.5.6
  109. EXTRA_HOSTS=
  110.  
  111.  
  112. ###
  113. ### Set your user id and group id
  114. ###
  115. ### This should be changed to the value of your local
  116. ### users uid and gid
  117. ###
  118. ### Type `id` on the terminal to find out your values
  119. ###
  120. NEW_UID=501
  121. NEW_GID=20
  122.  
  123.  
  124. ###
  125. ### Timezone for all dockers and service config files
  126. ###
  127. TIMEZONE=Europe/London
  128.  
  129.  
  130.  
  131.  
  132. ################################################################################
  133. ###
  134. ### INTRANET SETTINGS
  135. ###
  136. ################################################################################
  137.  
  138. ###
  139. ### TLD_SUFFIX domains are checked if they are set in the
  140. ### host computer /etc/hosts or available via attached DNS server.
  141. ### Timeout is done on vhosts.php (intranet) via ajax calls.
  142. ### In order to keep performance, set this to a low value.
  143. ### DNS checks might not succeed in time on slow machines.
  144. ### If DNS is valid, but timeout is expired, set this to a higher value.
  145. ###
  146. ### DNS_CHECK_TIMEOUT value is how many seconds to time out
  147. ### Default is to timeout after 1 second (DNS_CHECK_TIMEOUT=1)
  148. ###
  149. DNS_CHECK_TIMEOUT=1
  150.  
  151.  
  152. ###
  153. ### Devilbox UI SSL Certificate generation
  154. ###
  155. ### When using SSL each certificate requires names for which it is responsible:
  156. ### Common Name as well as alternative names.
  157. ###
  158. ### Specify comma separated hostnames below by which you want to access the Devilbox.
  159. ### Those hostnames will be included in the SSL certificate for the Devilbox intranet.
  160. ### This has nothing to do for SSL certificates for projects, it is just for the intranet
  161. ### itself.
  162. ###
  163. DEVILBOX_UI_SSL_CN=localhost,*.localhost,devilbox,*.devilbox
  164.  
  165.  
  166. ###
  167. ### Devilbox UI Password protection enable/disable (1/0)
  168. ###
  169. ### Set DEVILBOX_UI_PROTECT to 1 in order to password protect the
  170. ### intranet.
  171. ###
  172. ### Example:
  173. ###   DEVILBOX_UI_PROTECT=1
  174. ###   DEVILBOX_UI_PROTECT=0
  175. ###
  176. DEVILBOX_UI_PROTECT=0
  177.  
  178.  
  179. ###
  180. ### Devilbox UI Password
  181. ###
  182. ### When DEVILBOX_UI_PROTECT=1, use the following password
  183. ### to log in. The password can always be changed.
  184. ### When changing the password, make sure to restart your
  185. ### PHP container.
  186. ###
  187. ### Example:
  188. ###   DEVILBOX_UI_PASSWORD=my-very-secure-password
  189. ###   DEVILBOX_UI_PASSWORD=Some pass with spaces
  190. ###
  191. ### The default username is 'devilbox'
  192. ###
  193. DEVILBOX_UI_PASSWORD=password
  194.  
  195.  
  196. ###
  197. ### Enable the Devilbox Intranet?
  198. ###
  199. ### Example:
  200. ###   DEVILBOX_UI_ENABLE=1
  201. ###   DEVILBOX_UI_ENABLE=0
  202. ###
  203. DEVILBOX_UI_ENABLE=1
  204.  
  205.  
  206.  
  207. ################################################################################
  208. ###
  209. ### 1. Choose Images (Version)
  210. ###
  211. ################################################################################
  212.  
  213. ###
  214. ### You can choose any combination of httpd, mysql, postgresql or php.
  215. ### Each of them are fully compatible between one another.
  216. ###
  217.  
  218.  
  219. ###
  220. ### 1.1 Choose PHP Server Image
  221. ###
  222. ### Note: PHP 5.2 is not officially supported. Intranet won't work (due to lack of namespace support).
  223. ###       PHP 5.2 only works with Apache 2.4, Nginx stable and Nginx mainline.
  224. ###       Use at your own risk.
  225. ###
  226. #PHP_SERVER=5.2
  227. #PHP_SERVER=5.3
  228. #PHP_SERVER=5.4
  229. #PHP_SERVER=5.5
  230. PHP_SERVER=5.6
  231. #PHP_SERVER=7.0
  232. #PHP_SERVER=7.1
  233. #PHP_SERVER=7.2
  234. #PHP_SERVER=7.3
  235.  
  236.  
  237. ###
  238. ### 1.2 Choose HTTPD Server Image
  239. ###
  240. #HTTPD_SERVER=apache-2.2
  241. HTTPD_SERVER=apache-2.4
  242. #HTTPD_SERVER=nginx-stable
  243. #HTTPD_SERVER=nginx-mainline
  244.  
  245.  
  246. ###
  247. ### 1.3 Choose MySQL Server Image
  248. ###
  249. #MYSQL_SERVER=mysql-5.5
  250. #MYSQL_SERVER=mysql-5.6
  251. #MYSQL_SERVER=mysql-5.7
  252. #MYSQL_SERVER=mysql-8.0
  253. #MYSQL_SERVER=mariadb-5.5
  254. #MYSQL_SERVER=mariadb-10.0
  255. MYSQL_SERVER=mariadb-10.1
  256. #MYSQL_SERVER=mariadb-10.2
  257. #MYSQL_SERVER=mariadb-10.3
  258. #MYSQL_SERVER=percona-5.5
  259. #MYSQL_SERVER=percona-5.6
  260. #MYSQL_SERVER=percona-5.7
  261.  
  262.  
  263. ###
  264. ### 1.4 Choose PostgreSQL Server Image
  265. ###
  266. #PGSQL_SERVER=9.1
  267. #PGSQL_SERVER=9.2
  268. #PGSQL_SERVER=9.3
  269. #PGSQL_SERVER=9.4
  270. #PGSQL_SERVER=9.5
  271. #PGSQL_SERVER=9.6
  272. #PGSQL_SERVER=10.0
  273. #PGSQL_SERVER=10.1
  274. #PGSQL_SERVER=10.2
  275. #PGSQL_SERVER=10.3
  276.  
  277.  
  278. ###
  279. ### 1.5 Choose Redis Server Image
  280. ###
  281. #REDIS_SERVER=2.8
  282. #REDIS_SERVER=3.0
  283. #REDIS_SERVER=3.2
  284. #REDIS_SERVER=4.0
  285. #REDIS_SERVER=5.0-rc
  286.  
  287.  
  288. ###
  289. ### 1.6 Choose Memcached Server Image
  290. ###
  291. #MEMCD_SERVER=1.4.21
  292. #MEMCD_SERVER=1.4.22
  293. #MEMCD_SERVER=1.4.23
  294. #MEMCD_SERVER=1.4.24
  295. #MEMCD_SERVER=1.4.25
  296. #MEMCD_SERVER=1.4.26
  297. #MEMCD_SERVER=1.4.27
  298. #MEMCD_SERVER=1.4.28
  299. #MEMCD_SERVER=1.4.29
  300. #MEMCD_SERVER=1.4.30
  301. #MEMCD_SERVER=1.4.31
  302. #MEMCD_SERVER=1.4.32
  303. #MEMCD_SERVER=1.4.33
  304. #MEMCD_SERVER=1.4.34
  305. #MEMCD_SERVER=1.4.35
  306. #MEMCD_SERVER=1.4.36
  307. #MEMCD_SERVER=1.4.37
  308. #MEMCD_SERVER=1.4.38
  309. #MEMCD_SERVER=1.4.39
  310. #MEMCD_SERVER=1.5.0
  311. #MEMCD_SERVER=1.5.1
  312. #MEMCD_SERVER=1.5.2
  313. #MEMCD_SERVER=1.5.3
  314. #MEMCD_SERVER=1.5.4
  315. #MEMCD_SERVER=1.5.5
  316. #MEMCD_SERVER=latest
  317.  
  318.  
  319. ###
  320. ### 1.7 Choose Mongo Server Image
  321. ###
  322. #MONGO_SERVER=2.8
  323. #MONGO_SERVER=3.0
  324. #MONGO_SERVER=3.2
  325. #MONGO_SERVER=3.4
  326. #MONGO_SERVER=3.5
  327. #MONGO_SERVER=3.6
  328. #MONGO_SERVER=3.7
  329.  
  330.  
  331.  
  332. ################################################################################
  333. ###
  334. ### 2. Host Mounts (Your computer)
  335. ###
  336. ################################################################################
  337.  
  338. ###
  339. ### Global mount options
  340. ###
  341. ### Note: When adding custom mount options, ensure to start with a
  342. ###       leading ',' (comma), as those options are prepended to already
  343. ###       existing mount options.
  344. ###
  345. ### Note: If no mount options are specified, leave this variable empty
  346. ###       and do not add a leading ',' (comman).
  347. ###
  348. MOUNT_OPTIONS=,cached
  349. ### MOUNT_OPTIONS=
  350. ###
  351. ### Example: Allow to share mounts accross container with SELINUX enabled
  352. ###
  353. ### MOUNT_OPTIONS=,z
  354. ###
  355. MOUNT_OPTIONS=
  356.  
  357.  
  358. ###
  359. ### Local filesystem path to www projects.
  360. ###
  361. ### Note: When changing this variable you must re-create the container.
  362. ###       Simply remove it, it will be auto-created during the next start:
  363. ###
  364. ### $ docker-compose rm -f
  365. ###
  366. HOST_PATH_HTTPD_DATADIR=./data/www
  367.  
  368.  
  369. ###
  370. ### Local filesystem path to mysql/mariadb datadir.
  371. ###
  372. ### This can be an existing mysql data directory or empty.
  373. ### If it already is a mysql data directory with content,
  374. ### it will be mounted into the docker and used.
  375. ###
  376. ### If this directory is empty, a new mysql database will be
  377. ### created.
  378. ###
  379. ### Note: Inside this path, a subdirectory with the mysql|mariadb
  380. ###       version will be created where the actual data resides.
  381. ###       This is to protect databases from being altered by
  382. ###       newer or older mysql|mariadb server versions.
  383. ###
  384. ### Note: When changing this variable you must re-create the container.
  385. ###       Simply remove it, it will be auto-created during the next start:
  386. ###
  387. ### $ docker-compose rm -f
  388. ###
  389. HOST_PATH_MYSQL_DATADIR=./data/mysql
  390.  
  391.  
  392. ###
  393. ### Local filesystem path to postgresql datadir.
  394. ###
  395. ### This can be an existing postgresql data directory or empty.
  396. ### If it already is a postgresql data directory with content,
  397. ### it will be mounted into the docker and used.
  398. ###
  399. ### If this directory is empty, a new postgresql database will be
  400. ### created.
  401. ###
  402. ### Note: Inside this path, a subdirectory with the postgresql
  403. ###       version will be created where the actual data resides.
  404. ###       This is to protect databases from being altered by
  405. ###       newer or older postgres server versions.
  406. ###
  407. ### Note: When changing this variable you must re-create the container.
  408. ###       Simply remove it, it will be auto-created during the next start:
  409. ###
  410. ### $ docker-compose rm -f
  411. ###
  412. HOST_PATH_PGSQL_DATADIR=./data/pgsql
  413.  
  414.  
  415. ###
  416. ### Local filesystem path to mongodb datadir.
  417. ###
  418. ### This can be an existing mongodb data directory or empty.
  419. ### If it already is a mongodb data directory with content,
  420. ### it will be mounted into the docker and used.
  421. ###
  422. ### If this directory is empty, a new mongodb database will be
  423. ### created.
  424. ###
  425. ### Note: When changing this variable you must re-create the container.
  426. ###       Simply remove it, it will be auto-created during the next start:
  427. ###
  428. ### $ docker-compose rm -f
  429. ###
  430. HOST_PATH_MONGO_DATADIR=./data/mongo
  431.  
  432.  
  433.  
  434. ################################################################################
  435. ###
  436. ### 3. PHP Docker Settings
  437. ###
  438. ################################################################################
  439.  
  440. ###
  441. ### Enable certain PHP modules which are not enabled by default
  442. ###
  443. ### Currently the only module that can be enabled is 'ioncube'
  444. ###
  445. ### PHP_MODULES_ENABLE=ioncube
  446. ###
  447. PHP_MODULES_ENABLE=
  448.  
  449.  
  450. ###
  451. ### Disable any PHP modules that you don't require
  452. ###
  453. ### Specify a comma separated list without spaces of modules to disable
  454. ###
  455. ### PHP_MODULES_DISABLE=xdebug,imagick,swoole
  456. ###
  457. PHP_MODULES_DISABLE=rdkafka,swoole
  458.  
  459.  
  460. ###
  461. ### Configure everything else about PHP in
  462. ### * cfg/php-ini-X.X/*.ini
  463. ### * cfg/php-fpm-X.X/*.conf
  464.  
  465.  
  466.  
  467. ################################################################################
  468. ###
  469. ### 4. HTTPD Docker Settings
  470. ###
  471. ################################################################################
  472.  
  473. ###
  474. ### Expose HTTPD Port to Host
  475. ###
  476. HOST_PORT_HTTPD=80
  477. HOST_PORT_HTTPD_SSL=443
  478.  
  479.  
  480. ###
  481. ### Document Root Subdirectory
  482. ###
  483. ### In your project directory, which subfolder should
  484. ### serve your files?
  485. ###
  486. ### When changing this value, restart the devilbox.
  487. ###
  488. HTTPD_DOCROOT_DIR=htdocs
  489.  
  490.  
  491. ###
  492. ### Per vHost Config Subdirectory
  493. ###
  494. ### In your project directory, which subfolder should
  495. ### hold apache, nginx templates for a customized vhost?
  496. ###
  497. ### When changing this value, restart the devilbox.
  498. ###
  499. HTTPD_TEMPLATE_DIR=.devilbox
  500.  
  501.  
  502. ###
  503. ### Webserver timeout (in seconds) to upstream PHP-FPM server
  504. ###
  505. ### This value should be greater than PHP's max_execution_time,
  506. ### otherwise the php script could still run and the webserver will
  507. ### simply drop the connection before getting an answer by PHP.
  508. ###
  509. HTTPD_TIMEOUT_TO_PHP_FPM=180
  510.  
  511.  
  512.  
  513. ################################################################################
  514. ###
  515. ### 5. MySQL Docker Settings
  516. ###
  517. ################################################################################
  518.  
  519. ###
  520. ### MySQL root user password
  521. ###
  522. ### If $HOST_PATH_MYSQL_DATADIR already contains an existing
  523. ### mysql datadir, enter the password for the existing mysql database
  524. ###
  525. ### If $HOST_PATH_MYSQL_DATADIR is empty, choose a new password that
  526. ### will be applied
  527. ###
  528. MYSQL_ROOT_PASSWORD=
  529.  
  530.  
  531. ###
  532. ### Custom MySQL Runtime Settings
  533. ###
  534. MYSQL_GENERAL_LOG=0
  535.  
  536.  
  537. ###
  538. ### Expose MySQL Port to Host
  539. ###
  540. HOST_PORT_MYSQL=3306
  541.  
  542.  
  543.  
  544. ################################################################################
  545. ###
  546. ### 6. PostgreSQL Docker Settings
  547. ###
  548. ################################################################################
  549.  
  550. ###
  551. ### PostgreSQL 'root' user name (usually postgres)
  552. ###
  553. PGSQL_ROOT_USER=postgres
  554.  
  555.  
  556. ###
  557. ### PostgreSQL 'root' user password
  558. ###
  559. PGSQL_ROOT_PASSWORD=
  560.  
  561.  
  562. ###
  563. ### Expose PostgreSQL Port to Host
  564. ###
  565. HOST_PORT_PGSQL=5432
  566.  
  567.  
  568.  
  569. ################################################################################
  570. ###
  571. ### 7. Redis Docker Settings
  572. ###
  573. ################################################################################
  574.  
  575. ###
  576. ### Expose Redis Port to Host
  577. ###
  578. HOST_PORT_REDIS=6379
  579.  
  580.  
  581. ###
  582. ### Custom startup arguments
  583. ###
  584. ### Apply custom startup arguments to redis
  585. ###
  586. ### Example: Password protection
  587. ###   Add password protection to the Redis server by specifying it should
  588. ###   require a password.
  589. ###   Note: Do not add quotes or spaces to the password
  590. ###
  591. ###   REDIS_ARGS=--requirepass my-redis-root-password
  592. ###
  593. ### Example: Verbosity
  594. ###
  595. ###   REDIS_ARGS=--loglevel verbose
  596. ###
  597. REDIS_ARGS=
  598. #REDIS_ARGS=--loglevel verbose --requirepass my-redis-root-password
  599.  
  600.  
  601.  
  602. ################################################################################
  603. ###
  604. ### 8. Memcached Docker Settings
  605. ###
  606. ################################################################################
  607.  
  608. ###
  609. ### Expose Memcached Port to Host
  610. ###
  611. HOST_PORT_MEMCD=11211
  612.  
  613.  
  614.  
  615. ################################################################################
  616. ###
  617. ### 9. MongoDB Docker Settings
  618. ###
  619. ################################################################################
  620.  
  621. ###
  622. ### Expose MongoDB Port to Host
  623. ###
  624. HOST_PORT_MONGO=27017
  625.  
  626.  
  627.  
  628. ################################################################################
  629. ###
  630. ### 10. Bind Docker Settings
  631. ###
  632. ################################################################################
  633.  
  634. ###
  635. ### Expose Bind Port to Host
  636. ###
  637. HOST_PORT_BIND=1053
  638.  
  639. ###
  640. ### Add comma separated DNS server from which you want to receive DNS
  641. ### You can also add DNS servers from your LAN (if any are available)
  642. ###
  643. BIND_DNS_RESOLVER=8.8.8.8,8.8.4.4
  644.  
  645. ###
  646. ### Validate DNSSEC
  647. ###
  648. ### Values:
  649. ###  no:    DNSSEC validation is disabled
  650. ###  yes:   DNSSEC validation is enabled, but a trust anchor must be manually configured.
  651. ###  auto:  DNSSEC validation is enabled, and a default trust anchor for root zone is used.
  652. ###
  653. BIND_DNSSEC_VALIDATE=no
  654.  
  655.  
  656. ###
  657. ### Bind timing options (time in seconds)
  658. ###
  659. ### Leave empty for defaults.
  660. ### Only change when you know what you are doing.
  661. ###
  662. BIND_TTL_TIME=
  663. BIND_REFRESH_TIME=
  664. BIND_RETRY_TIME=
  665. BIND_EXPIRY_TIME=
  666. BIND_MAX_CACHE_TIME=
  667.  
  668.  
  669. ###
  670. ### Show DNS Queries in Docker logs output?
  671. ###
  672. ### 1: Yes
  673. ### 0: No
  674. BIND_LOG_DNS_QUERIES=0
  675.  
  676.  
  677.  
  678. ################################################################################
  679. ###
  680. ### 11. Custom variables
  681. ###
  682. ################################################################################
  683.  
  684. ###
  685. ### Any variable defined in this file will be available
  686. ### as environment variables to your PHP/HHV Docker container.
  687. ###
  688. ### This might be useful to set application environment and retrieve
  689. ### them via: <?php getenv('MY_APPLICATION_ENV'); ?>
  690. ###
  691. ENVIRONMENT=local
  692.  
  693.  
  694. ###
  695. ### Example:
  696. ### <?php echo getenv('Foo'); ?> would produce: 'some value'
  697. ###
  698. #Foo=some value
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement