Advertisement
Guest User

Untitled

a guest
Jan 5th, 2019
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.50 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: No
  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=0
  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=127.0.0.1:
  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=1000
  121. NEW_GID=1000
  122.  
  123.  
  124. ###
  125. ### Timezone for all dockers and service config files
  126. ###
  127. TIMEZONE=Asia/Jakarta
  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. #PHP_SERVER=7.4
  236.  
  237.  
  238. ###
  239. ### 1.2 Choose HTTPD Server Image
  240. ###
  241. #HTTPD_SERVER=apache-2.2
  242. #HTTPD_SERVER=apache-2.4
  243. HTTPD_SERVER=nginx-stable
  244. #HTTPD_SERVER=nginx-mainline
  245.  
  246.  
  247. ###
  248. ### 1.3 Choose MySQL Server Image
  249. ###
  250. #MYSQL_SERVER=mysql-5.5
  251. #MYSQL_SERVER=mysql-5.6
  252. #MYSQL_SERVER=mysql-5.7
  253. #MYSQL_SERVER=mysql-8.0
  254. #MYSQL_SERVER=mariadb-5.5
  255. #MYSQL_SERVER=mariadb-10.0
  256. #MYSQL_SERVER=mariadb-10.1
  257. #MYSQL_SERVER=mariadb-10.2
  258. MYSQL_SERVER=mariadb-10.3
  259. #MYSQL_SERVER=percona-5.5
  260. #MYSQL_SERVER=percona-5.6
  261. #MYSQL_SERVER=percona-5.7
  262.  
  263.  
  264. ###
  265. ### 1.4 Choose PostgreSQL Server Image
  266. ###
  267. ### IMPORTANT: Apline based images might cause issues on Docker Toolbox or OSX
  268. ### https://github.com/docker/toolbox/issues/510
  269. ###
  270. #PGSQL_SERVER=9.0
  271. #PGSQL_SERVER=9.1
  272. #PGSQL_SERVER=9.2
  273. #PGSQL_SERVER=9.2-alpine
  274. #PGSQL_SERVER=9.3
  275. #PGSQL_SERVER=9.3-alpine
  276. #PGSQL_SERVER=9.4
  277. #PGSQL_SERVER=9.4-alpine
  278. #PGSQL_SERVER=9.5
  279. #PGSQL_SERVER=9.5-alpine
  280. #PGSQL_SERVER=9.6
  281. #PGSQL_SERVER=9.6-alpine
  282. #PGSQL_SERVER=10.0
  283. #PGSQL_SERVER=10.0-alpine
  284. #PGSQL_SERVER=10.1
  285. #PGSQL_SERVER=10.1-alpine
  286. #PGSQL_SERVER=10.2
  287. #PGSQL_SERVER=10.2-alpine
  288. #PGSQL_SERVER=10.3
  289. #PGSQL_SERVER=10.3-alpine
  290. #PGSQL_SERVER=10.4
  291. #PGSQL_SERVER=10.4-alpine
  292. #PGSQL_SERVER=10.5
  293. #PGSQL_SERVER=10.5-alpine
  294. #PGSQL_SERVER=10.6
  295. #PGSQL_SERVER=10.6-alpine
  296. #PGSQL_SERVER=11.0
  297. #PGSQL_SERVER=11.0-alpine
  298. PGSQL_SERVER=11.1
  299. #PGSQL_SERVER=11.1-alpine
  300. #PGSQL_SERVER=latest
  301. #PGSQL_SERVER=alpine
  302.  
  303.  
  304. ###
  305. ### 1.5 Choose Redis Server Image
  306. ###
  307. ### IMPORTANT: Apline based images might cause issues on Docker Toolbox or OSX
  308. ### https://github.com/docker/toolbox/issues/510
  309. ###
  310. #REDIS_SERVER=2.8
  311. #REDIS_SERVER=3.0
  312. #REDIS_SERVER=3.0-alpine
  313. #REDIS_SERVER=3.2
  314. #REDIS_SERVER=3.2-alpine
  315. #REDIS_SERVER=4.0
  316. #REDIS_SERVER=4.0-alpine
  317. REDIS_SERVER=5.0
  318. #REDIS_SERVER=5.0-alpine
  319. #REDIS_SERVER=latest
  320. #REDIS_SERVER=alpine
  321.  
  322.  
  323. ###
  324. ### 1.6 Choose Memcached Server Image
  325. ###
  326. ### IMPORTANT: Apline based images might cause issues on Docker Toolbox or OSX
  327. ### https://github.com/docker/toolbox/issues/510
  328. ###
  329. #MEMCD_SERVER=1.4
  330. #MEMCD_SERVER=1.4-alpine
  331. MEMCD_SERVER=1.5
  332. #MEMCD_SERVER=1.5-alpine
  333. #MEMCD_SERVER=latest
  334. #MEMCD_SERVER=alpine
  335.  
  336.  
  337. ###
  338. ### 1.7 Choose Mongo Server Image
  339. ###
  340. #MONGO_SERVER=2.8
  341. #MONGO_SERVER=3.0
  342. #MONGO_SERVER=3.2
  343. #MONGO_SERVER=3.4
  344. #MONGO_SERVER=3.6
  345. MONGO_SERVER=4.0
  346. #MONGO_SERVER=latest
  347.  
  348.  
  349.  
  350. ################################################################################
  351. ###
  352. ### 2. Host Mounts (Your computer)
  353. ###
  354. ################################################################################
  355.  
  356. ###
  357. ### Global mount options
  358. ###
  359. ### Note: When adding custom mount options, ensure to start with a
  360. ### leading ',' (comma), as those options are prepended to already
  361. ### existing mount options.
  362. ###
  363. ### Note: If no mount options are specified, leave this variable empty
  364. ### and do not add a leading ',' (comman).
  365. ###
  366. ### MOUNT_OPTIONS=,cached
  367. ### MOUNT_OPTIONS=
  368. ###
  369. ### Example: Allow to share mounts accross container with SELINUX enabled
  370. ###
  371. ### MOUNT_OPTIONS=,z
  372. ###
  373. MOUNT_OPTIONS=,z
  374.  
  375.  
  376. ###
  377. ### Local filesystem path to www projects.
  378. ###
  379. ### Note: When changing this variable you must re-create the container.
  380. ### Simply remove it, it will be auto-created during the next start:
  381. ###
  382. ### $ docker-compose rm -f
  383. ###
  384. HOST_PATH_HTTPD_DATADIR=./data/www
  385.  
  386.  
  387. ###
  388. ### Local filesystem path to mysql/mariadb datadir.
  389. ###
  390. ### This can be an existing mysql data directory or empty.
  391. ### If it already is a mysql data directory with content,
  392. ### it will be mounted into the docker and used.
  393. ###
  394. ### If this directory is empty, a new mysql database will be
  395. ### created.
  396. ###
  397. ### Note: Inside this path, a subdirectory with the mysql|mariadb
  398. ### version will be created where the actual data resides.
  399. ### This is to protect databases from being altered by
  400. ### newer or older mysql|mariadb server versions.
  401. ###
  402. ### Note: When changing this variable you must re-create the container.
  403. ### Simply remove it, it will be auto-created during the next start:
  404. ###
  405. ### $ docker-compose rm -f
  406. ###
  407. HOST_PATH_MYSQL_DATADIR=./data/mysql
  408.  
  409.  
  410. ###
  411. ### Local filesystem path to postgresql datadir.
  412. ###
  413. ### This can be an existing postgresql data directory or empty.
  414. ### If it already is a postgresql data directory with content,
  415. ### it will be mounted into the docker and used.
  416. ###
  417. ### If this directory is empty, a new postgresql database will be
  418. ### created.
  419. ###
  420. ### Note: Inside this path, a subdirectory with the postgresql
  421. ### version will be created where the actual data resides.
  422. ### This is to protect databases from being altered by
  423. ### newer or older postgres server versions.
  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_PGSQL_DATADIR=./data/pgsql
  431.  
  432.  
  433. ###
  434. ### Local filesystem path to mongodb datadir.
  435. ###
  436. ### This can be an existing mongodb data directory or empty.
  437. ### If it already is a mongodb data directory with content,
  438. ### it will be mounted into the docker and used.
  439. ###
  440. ### If this directory is empty, a new mongodb database will be
  441. ### created.
  442. ###
  443. ### Note: When changing this variable you must re-create the container.
  444. ### Simply remove it, it will be auto-created during the next start:
  445. ###
  446. ### $ docker-compose rm -f
  447. ###
  448. HOST_PATH_MONGO_DATADIR=./data/mongo
  449.  
  450.  
  451.  
  452. ################################################################################
  453. ###
  454. ### 3. PHP Docker Settings
  455. ###
  456. ################################################################################
  457.  
  458. ###
  459. ### Enable certain PHP modules which are not enabled by default
  460. ###
  461. ### Currently the only module that can be enabled is 'ioncube'
  462. ###
  463. ### PHP_MODULES_ENABLE=ioncube
  464. ###
  465. PHP_MODULES_ENABLE=
  466.  
  467.  
  468. ###
  469. ### Disable any PHP modules that you don't require
  470. ###
  471. ### Specify a comma separated list without spaces of modules to disable
  472. ###
  473. ### PHP_MODULES_DISABLE=xdebug,imagick,swoole
  474. ###
  475. PHP_MODULES_DISABLE=pdo_sqlsrv,sqlsrv,rdkafka,swoole
  476.  
  477.  
  478. ###
  479. ### Configure everything else about PHP in
  480. ### * cfg/php-ini-X.X/*.ini
  481. ### * cfg/php-fpm-X.X/*.conf
  482.  
  483.  
  484.  
  485. ################################################################################
  486. ###
  487. ### 4. HTTPD Docker Settings
  488. ###
  489. ################################################################################
  490.  
  491. ###
  492. ### Expose HTTPD Port to Host
  493. ###
  494. HOST_PORT_HTTPD=80
  495. HOST_PORT_HTTPD_SSL=443
  496.  
  497.  
  498. ###
  499. ### Document Root Subdirectory
  500. ###
  501. ### In your project directory, which subfolder should
  502. ### serve your files?
  503. ###
  504. ### When changing this value, restart the devilbox.
  505. ###
  506. HTTPD_DOCROOT_DIR=
  507.  
  508.  
  509. ###
  510. ### Per vHost Config Subdirectory
  511. ###
  512. ### In your project directory, which subfolder should
  513. ### hold apache, nginx templates for a customized vhost?
  514. ###
  515. ### When changing this value, restart the devilbox.
  516. ###
  517. HTTPD_TEMPLATE_DIR=.devilbox
  518.  
  519.  
  520. ###
  521. ### Webserver timeout (in seconds) to upstream PHP-FPM server
  522. ###
  523. ### This value should be greater than PHP's max_execution_time,
  524. ### otherwise the php script could still run and the webserver will
  525. ### simply drop the connection before getting an answer by PHP.
  526. ###
  527. HTTPD_TIMEOUT_TO_PHP_FPM=180
  528.  
  529.  
  530.  
  531. ################################################################################
  532. ###
  533. ### 5. MySQL Docker Settings
  534. ###
  535. ################################################################################
  536.  
  537. ###
  538. ### MySQL root user password
  539. ###
  540. ### If $HOST_PATH_MYSQL_DATADIR already contains an existing
  541. ### mysql datadir, enter the password for the existing mysql database
  542. ###
  543. ### If $HOST_PATH_MYSQL_DATADIR is empty, choose a new password that
  544. ### will be applied
  545. ###
  546. MYSQL_ROOT_PASSWORD=
  547.  
  548.  
  549. ###
  550. ### Custom MySQL Runtime Settings
  551. ###
  552. MYSQL_GENERAL_LOG=0
  553.  
  554.  
  555. ###
  556. ### Expose MySQL Port to Host
  557. ###
  558. HOST_PORT_MYSQL=3306
  559.  
  560.  
  561.  
  562. ################################################################################
  563. ###
  564. ### 6. PostgreSQL Docker Settings
  565. ###
  566. ################################################################################
  567.  
  568. ###
  569. ### PostgreSQL 'root' user name (usually postgres)
  570. ###
  571. PGSQL_ROOT_USER=postgres
  572.  
  573.  
  574. ###
  575. ### PostgreSQL 'root' user password
  576. ###
  577. PGSQL_ROOT_PASSWORD=
  578.  
  579.  
  580. ###
  581. ### Expose PostgreSQL Port to Host
  582. ###
  583. HOST_PORT_PGSQL=5432
  584.  
  585.  
  586.  
  587. ################################################################################
  588. ###
  589. ### 7. Redis Docker Settings
  590. ###
  591. ################################################################################
  592.  
  593. ###
  594. ### Expose Redis Port to Host
  595. ###
  596. HOST_PORT_REDIS=6379
  597.  
  598.  
  599. ###
  600. ### Custom startup arguments
  601. ###
  602. ### Apply custom startup arguments to redis
  603. ###
  604. ### Example: Password protection
  605. ### Add password protection to the Redis server by specifying it should
  606. ### require a password.
  607. ### Note: Do not add quotes or spaces to the password
  608. ###
  609. ### REDIS_ARGS=--requirepass my-redis-root-password
  610. ###
  611. ### Example: Verbosity
  612. ###
  613. ### REDIS_ARGS=--loglevel verbose
  614. ###
  615. REDIS_ARGS=
  616. #REDIS_ARGS=--loglevel verbose --requirepass my-redis-root-password
  617.  
  618.  
  619.  
  620. ################################################################################
  621. ###
  622. ### 8. Memcached Docker Settings
  623. ###
  624. ################################################################################
  625.  
  626. ###
  627. ### Expose Memcached Port to Host
  628. ###
  629. HOST_PORT_MEMCD=11211
  630.  
  631.  
  632.  
  633. ################################################################################
  634. ###
  635. ### 9. MongoDB Docker Settings
  636. ###
  637. ################################################################################
  638.  
  639. ###
  640. ### Expose MongoDB Port to Host
  641. ###
  642. HOST_PORT_MONGO=27017
  643.  
  644.  
  645.  
  646. ################################################################################
  647. ###
  648. ### 10. Bind Docker Settings
  649. ###
  650. ################################################################################
  651.  
  652. ###
  653. ### Expose Bind Port to Host
  654. ###
  655. HOST_PORT_BIND=53
  656.  
  657. ###
  658. ### Add comma separated DNS server from which you want to receive DNS
  659. ### You can also add DNS servers from your LAN (if any are available)
  660. ###
  661. BIND_DNS_RESOLVER=8.8.8.8,8.8.4.4
  662.  
  663. ###
  664. ### Validate DNSSEC
  665. ###
  666. ### Values:
  667. ### no: DNSSEC validation is disabled
  668. ### yes: DNSSEC validation is enabled, but a trust anchor must be manually configured.
  669. ### auto: DNSSEC validation is enabled, and a default trust anchor for root zone is used.
  670. ###
  671. BIND_DNSSEC_VALIDATE=auto
  672.  
  673.  
  674. ###
  675. ### Bind timing options (time in seconds)
  676. ###
  677. ### Leave empty for defaults.
  678. ### Only change when you know what you are doing.
  679. ###
  680. BIND_TTL_TIME=
  681. BIND_REFRESH_TIME=
  682. BIND_RETRY_TIME=
  683. BIND_EXPIRY_TIME=
  684. BIND_MAX_CACHE_TIME=
  685.  
  686.  
  687. ###
  688. ### Show DNS Queries in Docker logs output?
  689. ###
  690. ### 1: Yes
  691. ### 0: No
  692. BIND_LOG_DNS_QUERIES=0
  693.  
  694.  
  695.  
  696. ################################################################################
  697. ###
  698. ### 11. Custom variables
  699. ###
  700. ################################################################################
  701.  
  702. ###
  703. ### Any variable defined in this file will be available
  704. ### as environment variables to your PHP/HHV Docker container.
  705. ###
  706. ### This might be useful to set application environment and retrieve
  707. ### them via: <?php getenv('MY_APPLICATION_ENV'); ?>
  708. ###
  709.  
  710.  
  711. ###
  712. ### Example:
  713. ### <?php echo getenv('Foo'); ?> would produce: 'some value'
  714. ###
  715. #Foo=some value
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement