Advertisement
Guest User

Untitled

a guest
Jan 25th, 2018
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.76 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. ### Relative or absolute path to the devilbox repository.
  26. ### (Used as a prefix for all mount paths)
  27. ### There is no need to change this.
  28. ###
  29. ### The only exception is for OSX users wanting to use NFS
  30. ### mounts instead of Filesystem mounts due to degraded performance
  31. ### on OSX.
  32. ###
  33. ### Note: When changing this variable you must re-create the container.
  34. ### Simply remove it, it will be auto-created during the next start:
  35. ###
  36. ### $ docker-compose rm -f
  37. ###
  38. DEVILBOX_PATH=.
  39.  
  40.  
  41. ###
  42. ### At what IP address should the docker services listen
  43. ### on the Host computer?
  44. ###
  45. ### The specified default should be fine for Linux and OSX (127.0.0.1:).
  46. ### If you are on windows, you will probably have to change
  47. ### it to the IP address of the docker machine.
  48. ###
  49. ### a.) Leave blank, to listen on all interfaces (no trailing color ':')
  50. ### LOCAL_LISTEN_ADDR=
  51. ### b.) If an IP is specified, note the trailing colon ':'
  52. ### LOCAL_LISTEN_ADDR=127.0.0.1:
  53. ###
  54. LOCAL_LISTEN_ADDR=
  55.  
  56.  
  57. ###
  58. ### This is the domain suffix your projects will be made available
  59. ### with mass-virtual-hosting.
  60. ### It is also required for the internal DNS server to be setup.
  61. ###
  62. ### Note: Only ALPHA ([a-zA-Z]+) characters are supported.
  63. ###
  64. ### Example:
  65. ### TLD_SUFFIX=loc
  66. ### Makes your project available under xxxx.loc
  67. ###
  68. ### Example:
  69. ### TLD_SUFFIX=local
  70. ### Makes your project available under xxxx.local
  71. ###
  72. TLD_SUFFIX=loc
  73.  
  74.  
  75. ###
  76. ### Set your user id and group id
  77. ###
  78. ### This should be changed to the value of your local
  79. ### users uid and gid
  80. ###
  81. ### Type `id` on the terminal to find out your values
  82. ###
  83. NEW_UID=1000
  84. NEW_GID=1000
  85.  
  86.  
  87. ###
  88. ### Timezone for all dockers and service config files
  89. ###
  90. TIMEZONE=Europe/Kiev
  91.  
  92.  
  93.  
  94.  
  95. ################################################################################
  96. ###
  97. ### INTRANET SETTINGS
  98. ###
  99. ################################################################################
  100.  
  101. ###
  102. ### TLD_SUFFIX domains are checked if they are set in the
  103. ### host computer /etc/hosts or available via attached DNS server.
  104. ### Timeout is done on vhosts.php (intranet) via ajax calls.
  105. ### In order to keep performance, set this to a low value.
  106. ### DNS checks might not succeed in time on slow machines.
  107. ### If DNS is valid, but timeout is expired, set this to a higher value.
  108. ###
  109. ### DNS_CHECK_TIMEOUT value is how many seconds to time out
  110. ### Default is to timeout after 1 second (DNS_CHECK_TIMEOUT=1)
  111. ###
  112. DNS_CHECK_TIMEOUT=1
  113.  
  114.  
  115. ###
  116. ### Devilbox UI Password protection enable/disable (1/0)
  117. ###
  118. ### Set DEVILBOX_UI_PROTECT to 1 in order to password protect the
  119. ### intranet.
  120. ###
  121. ### Example:
  122. ### DEVILBOX_UI_PROTECT=1
  123. ### DEVILBOX_UI_PROTECT=0
  124. ###
  125. DEVILBOX_UI_PROTECT=0
  126.  
  127.  
  128. ###
  129. ### Devilbox UI Password
  130. ###
  131. ### When DEVILBOX_UI_PROTECT=1, use the following password
  132. ### to log in. The password can always be changed.
  133. ### When changing the password, make sure to restart your
  134. ### PHP container.
  135. ###
  136. ### Example:
  137. ### DEVILBOX_UI_PASSWORD=my-very-secure-password
  138. ### DEVILBOX_UI_PASSWORD=Some pass with spaces
  139. ###
  140. ### The default username is 'devilbox'
  141. ###
  142. DEVILBOX_UI_PASSWORD=password
  143.  
  144.  
  145. ###
  146. ### Disable the Devilbox Intranet?
  147. ###
  148. ### Example:
  149. ### DEVILBOX_UI_DISABLE=1
  150. ### DEVILBOX_UI_DISABLE=0
  151. ###
  152. DEVILBOX_UI_DISABLE=0
  153.  
  154.  
  155.  
  156. ################################################################################
  157. ###
  158. ### 1. Choose Images (Version)
  159. ###
  160. ################################################################################
  161.  
  162. ###
  163. ### You can choose any combination of httpd, mysql, postgresql or php.
  164. ### Each of them are fully compatible between one another.
  165. ###
  166.  
  167.  
  168. ###
  169. ### 1.1 Choose PHP Server Image
  170. ###
  171. #PHP_SERVER=php-fpm-5.4
  172. #PHP_SERVER=php-fpm-5.5
  173. PHP_SERVER=php-fpm-5.6
  174. #PHP_SERVER=php-fpm-7.0
  175. #PHP_SERVER=php-fpm-7.1
  176. #PHP_SERVER=php-fpm-7.2
  177. #PHP_SERVER=hhvm-latest
  178.  
  179.  
  180. ###
  181. ### 1.2 Choose HTTPD Server Image
  182. ###
  183. #HTTPD_SERVER=apache-2.2
  184. HTTPD_SERVER=apache-2.4
  185. #HTTPD_SERVER=nginx-stable
  186. #HTTPD_SERVER=nginx-mainline
  187.  
  188.  
  189. ###
  190. ### 1.3 Choose MySQL Server Image
  191. ###
  192. #MYSQL_SERVER=mysql-5.5
  193. #MYSQL_SERVER=mysql-5.6
  194. MYSQL_SERVER=mysql-5.7
  195. #MYSQL_SERVER=mysql-8.0
  196. #MYSQL_SERVER=mariadb-5.5
  197. #MYSQL_SERVER=mariadb-10.0
  198. #MYSQL_SERVER=mariadb-10.1
  199. #MYSQL_SERVER=mariadb-10.2
  200. #MYSQL_SERVER=mariadb-10.3
  201. #MYSQL_SERVER=percona-5.5
  202. #MYSQL_SERVER=percona-5.6
  203. #MYSQL_SERVER=percona-5.7
  204.  
  205.  
  206. ###
  207. ### 1.4 Choose PostgreSQL Server Image
  208. ###
  209. #PGSQL_SERVER=9.1
  210. #PGSQL_SERVER=9.2
  211. #PGSQL_SERVER=9.3
  212. #PGSQL_SERVER=9.4
  213. #PGSQL_SERVER=9.5
  214. #PGSQL_SERVER=9.6
  215. PGSQL_SERVER=10.0
  216.  
  217.  
  218. ###
  219. ### 1.5 Choose Redis Server Image
  220. ###
  221. #REDIS_SERVER=2.8
  222. #REDIS_SERVER=3.0
  223. #REDIS_SERVER=3.2
  224. REDIS_SERVER=4.0
  225.  
  226.  
  227. ###
  228. ### 1.6 Choose Memcached Server Image
  229. ###
  230. #MEMCD_SERVER=1.4.21
  231. #MEMCD_SERVER=1.4.22
  232. #MEMCD_SERVER=1.4.23
  233. #MEMCD_SERVER=1.4.24
  234. #MEMCD_SERVER=1.4.25
  235. #MEMCD_SERVER=1.4.26
  236. #MEMCD_SERVER=1.4.27
  237. #MEMCD_SERVER=1.4.28
  238. #MEMCD_SERVER=1.4.29
  239. #MEMCD_SERVER=1.4.30
  240. #MEMCD_SERVER=1.4.31
  241. #MEMCD_SERVER=1.4.32
  242. #MEMCD_SERVER=1.4.33
  243. #MEMCD_SERVER=1.4.34
  244. #MEMCD_SERVER=1.4.35
  245. #MEMCD_SERVER=1.4.36
  246. #MEMCD_SERVER=1.4.37
  247. #MEMCD_SERVER=1.4.38
  248. #MEMCD_SERVER=1.4.39
  249. #MEMCD_SERVER=1.5.0
  250. #MEMCD_SERVER=1.5.1
  251. MEMCD_SERVER=1.5.2
  252. #MEMCD_SERVER=latest
  253.  
  254.  
  255. ###
  256. ### 1.7 Choose Mongo Server Image
  257. ###
  258. #MONGO_SERVER=2.8
  259. #MONGO_SERVER=3.0
  260. #MONGO_SERVER=3.2
  261. #MONGO_SERVER=3.4
  262. MONGO_SERVER=3.5
  263.  
  264.  
  265.  
  266. ################################################################################
  267. ###
  268. ### 2. Host Mounts (Your computer)
  269. ###
  270. ################################################################################
  271.  
  272. ###
  273. ### Local filesystem path to www projects.
  274. ###
  275. ### Note: When changing this variable you must re-create the container.
  276. ### Simply remove it, it will be auto-created during the next start:
  277. ###
  278. ### $ docker-compose rm -f
  279. ###
  280. HOST_PATH_HTTPD_DATADIR=./data/www
  281. #HOST_PATH_HTTPD_DATADIR=/home/evgenii/projects
  282.  
  283. ###
  284. ### Local filesystem path to mysql/mariadb datadir.
  285. ###
  286. ### This can be an existing mysql data directory or empty.
  287. ### If it already is a mysql data directory with content,
  288. ### it will be mounted into the docker and used.
  289. ###
  290. ### If this directory is empty, a new mysql database will be
  291. ### created.
  292. ###
  293. ### Note: Inside this path, a subdirectory with the mysql|mariadb
  294. ### version will be created where the actual data resides.
  295. ### This is to protect databases from being altered by
  296. ### newer or older mysql|mariadb server versions.
  297. ###
  298. ### Note: When changing this variable you must re-create the container.
  299. ### Simply remove it, it will be auto-created during the next start:
  300. ###
  301. ### $ docker-compose rm -f
  302. ###
  303. HOST_PATH_MYSQL_DATADIR=./data/mysql
  304.  
  305.  
  306.  
  307. ###
  308. ### Local filesystem path to postgresql datadir.
  309. ###
  310. ### This can be an existing postgresql data directory or empty.
  311. ### If it already is a postgresql data directory with content,
  312. ### it will be mounted into the docker and used.
  313. ###
  314. ### If this directory is empty, a new postgresql database will be
  315. ### created.
  316. ###
  317. ### Note: Inside this path, a subdirectory with the postgresql
  318. ### version will be created where the actual data resides.
  319. ### This is to protect databases from being altered by
  320. ### newer or older postgres server versions.
  321. ###
  322. ### Note: When changing this variable you must re-create the container.
  323. ### Simply remove it, it will be auto-created during the next start:
  324. ###
  325. ### $ docker-compose rm -f
  326. ###
  327. HOST_PATH_PGSQL_DATADIR=./data/pgsql
  328.  
  329.  
  330. ###
  331. ### Local filesystem path to mongodb datadir.
  332. ###
  333. ### This can be an existing mongodb data directory or empty.
  334. ### If it already is a mongodb data directory with content,
  335. ### it will be mounted into the docker and used.
  336. ###
  337. ### If this directory is empty, a new mongodb database will be
  338. ### created.
  339. ###
  340. ### Note: When changing this variable you must re-create the container.
  341. ### Simply remove it, it will be auto-created during the next start:
  342. ###
  343. ### $ docker-compose rm -f
  344. ###
  345. HOST_PATH_MONGO_DATADIR=./data/mongo
  346.  
  347.  
  348.  
  349. ################################################################################
  350. ###
  351. ### 3. PHP Docker Settings
  352. ###
  353. ################################################################################
  354.  
  355. ###
  356. ### Xdebug
  357. ###
  358.  
  359. # Enable/Disable Xdebug
  360. PHP_XDEBUG_ENABLE=0
  361.  
  362. # Your local port (your computer host [not the docker])
  363. # where your ide/editor is listening for xdebug connections.
  364. PHP_XDEBUG_REMOTE_PORT=9000
  365.  
  366. # Your local IP address (your computer host [not the docker])
  367. # where your ide/editor is listening for xdebug connections.
  368. PHP_XDEBUG_REMOTE_HOST=192.168.0.215
  369. ## TODO: Check if it works by automatically sending it to the broadcast address
  370.  
  371.  
  372.  
  373. ################################################################################
  374. ###
  375. ### 4. HTTPD Docker Settings
  376. ###
  377. ################################################################################
  378.  
  379. ###
  380. ### Expose HTTPD Port to Host
  381. ###
  382. HOST_PORT_HTTPD=80
  383.  
  384. ###
  385. ### Document Root Subdirectory
  386. ###
  387. ### In your project directory, which subfolder should
  388. ### serve your files?
  389. ###
  390. ### When changing this value, restart the devilbox.
  391. ###
  392. HTTPD_DOCROOT_DIR=htdocs
  393.  
  394. ###
  395. ### Per vHost Config Subdirectory
  396. ###
  397. ### In your project directory, which subfolder should
  398. ### hold apache, nginx templates for a customized vhost?
  399. ###
  400. ### When changing this value, restart the devilbox.
  401. ###
  402. HTTPD_TEMPLATE_DIR=.devilbox
  403.  
  404.  
  405.  
  406. ################################################################################
  407. ###
  408. ### 5. MySQL Docker Settings
  409. ###
  410. ################################################################################
  411.  
  412. ###
  413. ### MySQL root user password
  414. ###
  415. ### If $HOST_PATH_TO_MYSQL_DATADIR already contains an existing
  416. ### mysql datadir, enter the password for the existing mysql database
  417. ###
  418. ### If $HOST_PATH_TO_MYSQL_DATADIR is empty, choose a new password that
  419. ### will be applied
  420. ###
  421. MYSQL_ROOT_PASSWORD=
  422.  
  423. ###
  424. ### Custom MySQL Runtime Settings
  425. ###
  426. MYSQL_GENERAL_LOG=1
  427.  
  428. ###
  429. ### Expose MySQL Port to Host
  430. ###
  431. HOST_PORT_MYSQL=3306
  432.  
  433.  
  434.  
  435. ################################################################################
  436. ###
  437. ### 6. PostgreSQL Docker Settings
  438. ###
  439. ################################################################################
  440.  
  441. ###
  442. ### PostgreSQL 'root' user name (usually postgres)
  443. ###
  444. PGSQL_ROOT_USER=postgres
  445.  
  446. ###
  447. ### PostgreSQL 'root' user password
  448. ###
  449. PGSQL_ROOT_PASSWORD=
  450.  
  451. ###
  452. ### Expose PostgreSQL Port to Host
  453. ###
  454. HOST_PORT_PGSQL=5432
  455.  
  456.  
  457.  
  458. ################################################################################
  459. ###
  460. ### 7. Redis Docker Settings
  461. ###
  462. ################################################################################
  463.  
  464. ###
  465. ### Expose Redis Port to Host
  466. ###
  467. HOST_PORT_REDIS=6379
  468.  
  469.  
  470.  
  471. ################################################################################
  472. ###
  473. ### 8. Memcached Docker Settings
  474. ###
  475. ################################################################################
  476.  
  477. ###
  478. ### Expose Memcached Port to Host
  479. ###
  480. HOST_PORT_MEMCD=11211
  481.  
  482.  
  483.  
  484. ################################################################################
  485. ###
  486. ### 9. MongoDB Docker Settings
  487. ###
  488. ################################################################################
  489.  
  490. ###
  491. ### Expose MongoDB Port to Host
  492. ###
  493. HOST_PORT_MONGO=27017
  494.  
  495.  
  496.  
  497. ################################################################################
  498. ###
  499. ### 10. Bind Docker Settings
  500. ###
  501. ################################################################################
  502.  
  503. ###
  504. ### Expose Bind Port to Host
  505. ###
  506. HOST_PORT_BIND=1053
  507.  
  508. ###
  509. ### Add comma separated DNS server from which you want to receive DNS
  510. ### You can also add DNS servers from your LAN (if any are available)
  511. ###
  512. BIND_DNS_RESOLVER=8.8.8.8,8.8.4.4
  513.  
  514.  
  515.  
  516. ################################################################################
  517. ###
  518. ### 11. Custom variables
  519. ###
  520. ################################################################################
  521.  
  522. ###
  523. ### Any variable defined in this file will be available
  524. ### as environment variables to your PHP/HHV Docker container.
  525. ###
  526. ### This might be useful to set application environment and retrieve
  527. ### them via: <?php getenv('MY_APPLICATION_ENV'); ?>
  528. ###
  529. ###
  530. ### Example:
  531. ### <?php echo getenv('Foo'); ?> would produce: 'some value'
  532. ###
  533. #Foo=some value
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement