Advertisement
Guest User

Untitled

a guest
Jul 25th, 2017
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 23.01 KB | None | 0 0
  1. version: '2.1'
  2.  
  3.  
  4. ################################################################################
  5. # SERVICES
  6. ################################################################################
  7. services:
  8.  
  9. # ----------------------------------------
  10. # Bind (DNS Server)
  11. # ----------------------------------------
  12. bind:
  13. image: cytopia/bind:latest
  14. #image: cytopia/bind:0.10
  15. restart: always
  16. ports:
  17. # [local-machine:]local-port:docker-port
  18. - "${LOCAL_LISTEN_ADDR}${HOST_PORT_BIND:-1053}:53"
  19. - "${LOCAL_LISTEN_ADDR}${HOST_PORT_BIND:-1053}:53/udp"
  20.  
  21. environment:
  22. ##
  23. ## Debug?
  24. ##
  25. - DEBUG_COMPOSE_ENTRYPOINT
  26.  
  27. ##
  28. ## Bind settings
  29. ##
  30. - WILDCARD_DOMAIN=${TLD_SUFFIX:-loc}
  31. - WILDCARD_ADDRESS=172.16.238.11
  32. - BIND_DNS_RESOLVER=${BIND_DNS_RESOLVER:-8.8.8.8,8.8.4.4}
  33.  
  34. dns:
  35. - 127.0.0.1
  36.  
  37. networks:
  38. app_net:
  39. ipv4_address: 172.16.238.100
  40.  
  41.  
  42. # ----------------------------------------
  43. # PHP-FPM 5.6
  44. # ----------------------------------------
  45. php56:
  46. image: cytopia/php-fpm-5.6:latest
  47. #image: cytopia/${PHP_SERVER:-php-fpm-7.0}:0.11
  48. restart: always
  49.  
  50. # Manually build via `docker-compose build`
  51. #build:
  52. #context: https://github.com/cytopia/docker-${PHP_SERVER}.git#1
  53. # context: https://github.com/cytopia/docker-${PHP_SERVER}.git
  54.  
  55. environment:
  56.  
  57. ##
  58. ## Debug?
  59. ##
  60. - DEBUG_COMPOSE_ENTRYPOINT
  61.  
  62. ##
  63. ## UserID and GroupID
  64. ##
  65. - NEW_UID
  66. - NEW_GID
  67.  
  68. ##
  69. ## Adjust timezone
  70. ##
  71. - TIMEZONE
  72.  
  73. ##
  74. ## TLD SUffix
  75. ##
  76. - TLD_SUFFIX=${TLD_SUFFIX:-loc}
  77. - DNS_CHECK_TIMEOUT=${DNS_CHECK_TIMEOUT:-1}
  78.  
  79. ##
  80. ## PHP Xdebug
  81. ##
  82. - PHP_XDEBUG_ENABLE
  83. - PHP_XDEBUG_REMOTE_PORT
  84. - PHP_XDEBUG_REMOTE_HOST
  85.  
  86. ##
  87. ## Mail-catching
  88. ##
  89. - ENABLE_MAIL=1
  90.  
  91. ##
  92. ## Enable 127.0.0.1 Port-forwarding
  93. ##
  94. - FORWARD_PORTS_TO_LOCALHOST=3306:mysql:3306,5432:pgsql:5432,6379:redis:6379,11211:memcd:11211,27017:mongo:27017
  95.  
  96. ##
  97. ## MySQL Backups
  98. ##
  99. - MYSQL_BACKUP_USER=root
  100. - MYSQL_BACKUP_PASS=${MYSQL_ROOT_PASSWORD}
  101. - MYSQL_BACKUP_HOST=mysql
  102.  
  103. ##
  104. ## Additional variables to announce to intranet/php-container
  105. ##
  106. # Ports
  107. - LOCAL_LISTEN_ADDR
  108. - HOST_PORT_BIND
  109. - HOST_PORT_HTTPD56
  110. - HOST_PORT_MYSQL
  111. - HOST_PORT_PGSQL
  112. - HOST_PORT_REDIS
  113. - HOST_PORT_MEMCD
  114. - HOST_PORT_MONGO
  115. # Data dir paths
  116. - HOST_PATH_HTTPD_DATADIR
  117. - HOST_PATH_MYSQL_DATADIR
  118. - HOST_PATH_PGSQL_DATADIR
  119. - HOST_PATH_MONGO_DATADIR
  120. # Database credentials
  121. - PGSQL_ROOT_USER
  122. - PGSQL_ROOT_PASSWORD
  123. - MYSQL_ROOT_PASSWORD
  124. # Selected Server versions
  125. - PHP_SERVER
  126. - HTTPD_SERVER
  127. - PGSQL_SERVER
  128. - MYSQL_SERVER
  129. - REDIS_SERVER
  130. - MEMCD_SERVER
  131. - MONGO_SERVER
  132.  
  133. networks:
  134. app_net:
  135. ipv4_address: 172.16.238.56
  136.  
  137. dns:
  138. - 172.16.238.100
  139. - 8.8.8.8
  140. - 8.8.4.4
  141.  
  142. volumes:
  143. # ---- Format: ----
  144. # HOST-DIRECTORY : DOCKER-DIRECTORY
  145.  
  146. # Mount custom intranet
  147. # (configured in /etc/${HTTPD_SERVER}/01-vhost-default.conf)
  148. - ${DEVILBOX_PATH}/.devilbox/www:/var/www/default:ro
  149.  
  150. # Mount logs
  151. - ${DEVILBOX_PATH}/log/php-fpm-5.6:/var/log/php
  152.  
  153. # Mount Mail directory
  154. #- ${DEVILBOX_PATH}/run/mail:/var/mail
  155.  
  156. # Mount DB Backup directory
  157. - ${DEVILBOX_PATH}/backups:/shared/backups
  158.  
  159. # Mount devilbox user-defined *.ini files in order
  160. # to overwrite the default PHP configuration
  161. - ${DEVILBOX_PATH}/cfg/php-fpm-5.6:/etc/php-custom.d:ro
  162.  
  163. # Mount custom mass virtual hosting
  164. # (configured in /etc/${HTTPD_SERVER}/02-vhost-mass.conf)
  165. - ${HOST_PATH_HTTPD_DATADIR}/php56:/shared/httpd
  166.  
  167. depends_on:
  168. - bind
  169.  
  170. # ----------------------------------------
  171. # PHP-FPM 7.0
  172. # ----------------------------------------
  173. php70:
  174. image: cytopia/php-fpm-7.0:latest
  175. #image: cytopia/${PHP_SERVER:-php-fpm-7.0}:0.11
  176. restart: always
  177.  
  178. # Manually build via `docker-compose build`
  179. #build:
  180. #context: https://github.com/cytopia/docker-${PHP_SERVER}.git#1
  181. # context: https://github.com/cytopia/docker-${PHP_SERVER}.git
  182.  
  183. environment:
  184.  
  185. ##
  186. ## Debug?
  187. ##
  188. - DEBUG_COMPOSE_ENTRYPOINT
  189.  
  190. ##
  191. ## UserID and GroupID
  192. ##
  193. - NEW_UID
  194. - NEW_GID
  195.  
  196. ##
  197. ## Adjust timezone
  198. ##
  199. - TIMEZONE
  200.  
  201. ##
  202. ## TLD SUffix
  203. ##
  204. - TLD_SUFFIX=${TLD_SUFFIX:-loc}
  205. - DNS_CHECK_TIMEOUT=${DNS_CHECK_TIMEOUT:-1}
  206.  
  207. ##
  208. ## PHP Xdebug
  209. ##
  210. - PHP_XDEBUG_ENABLE
  211. - PHP_XDEBUG_REMOTE_PORT
  212. - PHP_XDEBUG_REMOTE_HOST
  213.  
  214. ##
  215. ## Mail-catching
  216. ##
  217. - ENABLE_MAIL=1
  218.  
  219. ##
  220. ## Enable 127.0.0.1 Port-forwarding
  221. ##
  222. - FORWARD_PORTS_TO_LOCALHOST=3306:mysql:3306,5432:pgsql:5432,6379:redis:6379,11211:memcd:11211,27017:mongo:27017
  223.  
  224. ##
  225. ## MySQL Backups
  226. ##
  227. - MYSQL_BACKUP_USER=root
  228. - MYSQL_BACKUP_PASS=${MYSQL_ROOT_PASSWORD}
  229. - MYSQL_BACKUP_HOST=mysql
  230.  
  231. ##
  232. ## Additional variables to announce to intranet/php-container
  233. ##
  234. # Ports
  235. - LOCAL_LISTEN_ADDR
  236. - HOST_PORT_BIND
  237. - HOST_PORT_HTTPD70
  238. - HOST_PORT_MYSQL
  239. - HOST_PORT_PGSQL
  240. - HOST_PORT_REDIS
  241. - HOST_PORT_MEMCD
  242. - HOST_PORT_MONGO
  243. # Data dir paths
  244. - HOST_PATH_HTTPD_DATADIR
  245. - HOST_PATH_MYSQL_DATADIR
  246. - HOST_PATH_PGSQL_DATADIR
  247. - HOST_PATH_MONGO_DATADIR
  248. # Database credentials
  249. - PGSQL_ROOT_USER
  250. - PGSQL_ROOT_PASSWORD
  251. - MYSQL_ROOT_PASSWORD
  252. # Selected Server versions
  253. - PHP_SERVER
  254. - HTTPD_SERVER
  255. - PGSQL_SERVER
  256. - MYSQL_SERVER
  257. - REDIS_SERVER
  258. - MEMCD_SERVER
  259. - MONGO_SERVER
  260.  
  261. networks:
  262. app_net:
  263. ipv4_address: 172.16.238.70
  264.  
  265. dns:
  266. - 172.16.238.100
  267. - 8.8.8.8
  268. - 8.8.4.4
  269.  
  270. volumes:
  271. # ---- Format: ----
  272. # HOST-DIRECTORY : DOCKER-DIRECTORY
  273.  
  274. # Mount custom intranet
  275. # (configured in /etc/${HTTPD_SERVER}/01-vhost-default.conf)
  276. - ${DEVILBOX_PATH}/.devilbox/www:/var/www/default:ro
  277.  
  278. # Mount logs
  279. - ${DEVILBOX_PATH}/log/php-fpm-7.0:/var/log/php
  280.  
  281. # Mount Mail directory
  282. #- ${DEVILBOX_PATH}/run/mail:/var/mail
  283.  
  284. # Mount DB Backup directory
  285. - ${DEVILBOX_PATH}/backups:/shared/backups
  286.  
  287. # Mount devilbox user-defined *.ini files in order
  288. # to overwrite the default PHP configuration
  289. - ${DEVILBOX_PATH}/cfg/php-fpm-7.0:/etc/php-custom.d:ro
  290.  
  291. # Mount custom mass virtual hosting
  292. # (configured in /etc/${HTTPD_SERVER}/02-vhost-mass.conf)
  293. - ${HOST_PATH_HTTPD_DATADIR}/php70:/shared/httpd
  294.  
  295. depends_on:
  296. - bind
  297.  
  298. # ----------------------------------------
  299. # PHP-FPM 7.1
  300. # ----------------------------------------
  301. php71:
  302. image: cytopia/php-fpm-7.1:latest
  303. #image: cytopia/${PHP_SERVER:-php-fpm-7.0}:0.11
  304. restart: always
  305.  
  306. # Manually build via `docker-compose build`
  307. #build:
  308. #context: https://github.com/cytopia/docker-${PHP_SERVER}.git#1
  309. # context: https://github.com/cytopia/docker-${PHP_SERVER}.git
  310.  
  311. environment:
  312.  
  313. ##
  314. ## Debug?
  315. ##
  316. - DEBUG_COMPOSE_ENTRYPOINT
  317.  
  318. ##
  319. ## UserID and GroupID
  320. ##
  321. - NEW_UID
  322. - NEW_GID
  323.  
  324. ##
  325. ## Adjust timezone
  326. ##
  327. - TIMEZONE
  328.  
  329. ##
  330. ## TLD SUffix
  331. ##
  332. - TLD_SUFFIX=${TLD_SUFFIX:-loc}
  333. - DNS_CHECK_TIMEOUT=${DNS_CHECK_TIMEOUT:-1}
  334.  
  335. ##
  336. ## PHP Xdebug
  337. ##
  338. - PHP_XDEBUG_ENABLE
  339. - PHP_XDEBUG_REMOTE_PORT
  340. - PHP_XDEBUG_REMOTE_HOST
  341.  
  342. ##
  343. ## Mail-catching
  344. ##
  345. - ENABLE_MAIL=1
  346.  
  347. ##
  348. ## Enable 127.0.0.1 Port-forwarding
  349. ##
  350. - FORWARD_PORTS_TO_LOCALHOST=3306:mysql:3306,5432:pgsql:5432,6379:redis:6379,11211:memcd:11211,27017:mongo:27017
  351.  
  352. ##
  353. ## MySQL Backups
  354. ##
  355. - MYSQL_BACKUP_USER=root
  356. - MYSQL_BACKUP_PASS=${MYSQL_ROOT_PASSWORD}
  357. - MYSQL_BACKUP_HOST=mysql
  358.  
  359. ##
  360. ## Additional variables to announce to intranet/php-container
  361. ##
  362. # Ports
  363. - LOCAL_LISTEN_ADDR
  364. - HOST_PORT_BIND
  365. - HOST_PORT_HTTPD71
  366. - HOST_PORT_MYSQL
  367. - HOST_PORT_PGSQL
  368. - HOST_PORT_REDIS
  369. - HOST_PORT_MEMCD
  370. - HOST_PORT_MONGO
  371. # Data dir paths
  372. - HOST_PATH_HTTPD_DATADIR
  373. - HOST_PATH_MYSQL_DATADIR
  374. - HOST_PATH_PGSQL_DATADIR
  375. - HOST_PATH_MONGO_DATADIR
  376. # Database credentials
  377. - PGSQL_ROOT_USER
  378. - PGSQL_ROOT_PASSWORD
  379. - MYSQL_ROOT_PASSWORD
  380. # Selected Server versions
  381. - PHP_SERVER
  382. - HTTPD_SERVER
  383. - PGSQL_SERVER
  384. - MYSQL_SERVER
  385. - REDIS_SERVER
  386. - MEMCD_SERVER
  387. - MONGO_SERVER
  388.  
  389. networks:
  390. app_net:
  391. ipv4_address: 172.16.238.71
  392.  
  393. dns:
  394. - 172.16.238.100
  395. - 8.8.8.8
  396. - 8.8.4.4
  397.  
  398. volumes:
  399. # ---- Format: ----
  400. # HOST-DIRECTORY : DOCKER-DIRECTORY
  401.  
  402. # Mount custom intranet
  403. # (configured in /etc/${HTTPD_SERVER}/01-vhost-default.conf)
  404. - ${DEVILBOX_PATH}/.devilbox/www:/var/www/default:ro
  405.  
  406. # Mount logs
  407. - ${DEVILBOX_PATH}/log/php-fpm-7.1:/var/log/php
  408.  
  409. # Mount Mail directory
  410. #- ${DEVILBOX_PATH}/run/mail:/var/mail
  411.  
  412. # Mount DB Backup directory
  413. - ${DEVILBOX_PATH}/backups:/shared/backups
  414.  
  415. # Mount devilbox user-defined *.ini files in order
  416. # to overwrite the default PHP configuration
  417. - ${DEVILBOX_PATH}/cfg/php-fpm-7.1:/etc/php-custom.d:ro
  418.  
  419. # Mount custom mass virtual hosting
  420. # (configured in /etc/${HTTPD_SERVER}/02-vhost-mass.conf)
  421. - ${HOST_PATH_HTTPD_DATADIR}/php71:/shared/httpd
  422.  
  423. depends_on:
  424. - bind
  425.  
  426. # ----------------------------------------
  427. # HTTPD (proxy for the several php versions)
  428. # ----------------------------------------
  429. httpd:
  430. image: 'jwilder/nginx-proxy:latest'
  431.  
  432. restart: always
  433.  
  434. ports:
  435. # ---- Format: ----
  436. # [HOST-ADDR : ] HOST-PORT : DOCKER-PORT
  437. - "${LOCAL_LISTEN_ADDR}${HOST_PORT_HTTPD56}:80"
  438. - "${LOCAL_LISTEN_ADDR}${HOST_PORT_HTTPD70}:80"
  439. - "${LOCAL_LISTEN_ADDR}${HOST_PORT_HTTPD71}:80"
  440. - '8080:80'
  441. - '80:80'
  442. - '443:443'
  443.  
  444. volumes:
  445. - ./proxy/conf.d:/etc/nginx/conf.d
  446. - ./proxy/vhost.d:/etc/nginx/vhost.d
  447. - ./proxy/certs:/etc/nginx/certs:ro
  448. - '/var/run/docker.sock:/tmp/docker.sock:ro'
  449.  
  450. # Mount logs
  451. - ${DEVILBOX_PATH}/log/jwilder-nginx-proxy:/var/log/nginx
  452.  
  453. networks:
  454. app_net:
  455. ipv4_address: 172.16.238.11
  456.  
  457.  
  458. # ----------------------------------------
  459. # HTTPD for PHP 5.6
  460. # ----------------------------------------
  461. httpd56:
  462. image: cytopia/${HTTPD_SERVER:-nginx-stable}:latest
  463. #image: cytopia/${HTTPD_SERVER:-nginx-stable}:0.9
  464. restart: always
  465.  
  466. # Manually build via `docker-compose build`
  467. #build:
  468. #context: https://github.com/cytopia/docker-${HTTPD_SERVER}.git#1
  469. # context: https://github.com/cytopia/docker-${HTTPD_SERVER}.git
  470.  
  471.  
  472. expose:
  473. - ${HOST_PORT_HTTPD56}
  474. environment:
  475.  
  476. - VIRTUAL_HOST=dbox-tests.ml
  477. - VIRTUAL_PORT=8056
  478. ##
  479. ## Debug?
  480. ##
  481. - DEBUG_COMPOSE_ENTRYPOINT
  482.  
  483. ##
  484. ## Adjust timezone
  485. ##
  486. - TIMEZONE
  487.  
  488. ##
  489. ## PHP-FPM Remote Server
  490. ##
  491. - PHP_FPM_ENABLE=1
  492. - PHP_FPM_SERVER_ADDR=php56
  493. - PHP_FPM_SERVER_PORT=9000
  494.  
  495. ## Tell the webserver to look into this directory
  496. ## for additional configuration files.
  497. ##
  498. ## @see volumes:: - ./etc/${HTTPD_SERVER}:/etc/${HTTPD_SERVER}
  499. - CUSTOM_HTTPD_CONF_DIR=/etc/${HTTPD_SERVER}
  500.  
  501. networks:
  502. app_net:
  503. ipv4_address: 172.16.238.156
  504.  
  505. volumes:
  506. # ---- Format: ----
  507. # HOST-DIRECTORY : DOCKER-DIRECTORY
  508.  
  509. # Custom scripts/binaries required for httpd server vhost
  510. # configuration to work.
  511. # (configured in /etc/${HTTPD_SERVER}/02-vhost-mass.conf)
  512. - ${DEVILBOX_PATH}/.devilbox/bin/${HTTPD_SERVER}:/opt/bin:ro
  513.  
  514. # Mount user-defined httpd configuration files
  515. # @see environment::CUSTOM_HTTPD_CONF_DIR for how this
  516. # is added in httpd server
  517. - ${DEVILBOX_PATH}/.devilbox/etc/${HTTPD_SERVER}/php56:/etc/${HTTPD_SERVER}:ro
  518.  
  519. # Mount custom intranet
  520. # (configured in /etc/${HTTPD_SERVER}/01-vhost-default.conf)
  521. - ${DEVILBOX_PATH}/.devilbox/www:/var/www/default:ro
  522.  
  523. # Mount user-defined httpd log
  524. # @see ./etc/${HTTPD_SERVER}/*.conf for log defines
  525. - ${DEVILBOX_PATH}/log/${HTTPD_SERVER}/php56:/var/log/${HTTPD_SERVER}
  526.  
  527. # Mount custom mass virtual hosting
  528. # (configured in /etc/${HTTPD_SERVER}/02-vhost-mass.conf)
  529. - ${HOST_PATH_HTTPD_DATADIR}/php56:/shared/httpd:ro
  530.  
  531. depends_on:
  532. - bind
  533. - httpd
  534. - php56
  535.  
  536. # ----------------------------------------
  537. # HTTPD for PHP 7.0
  538. # ----------------------------------------
  539. httpd70:
  540. image: cytopia/${HTTPD_SERVER:-nginx-stable}:latest
  541. #image: cytopia/${HTTPD_SERVER:-nginx-stable}:0.9
  542. restart: always
  543.  
  544. # Manually build via `docker-compose build`
  545. #build:
  546. #context: https://github.com/cytopia/docker-${HTTPD_SERVER}.git#1
  547. # context: https://github.com/cytopia/docker-${HTTPD_SERVER}.git
  548.  
  549. expose:
  550. - ${HOST_PORT_HTTPD70}
  551.  
  552. environment:
  553.  
  554. - VIRTUAL_HOST=dbox-tests.ml
  555. - VIRTUAL_PORT=8070
  556.  
  557. ##
  558. ## Debug?
  559. ##
  560. - DEBUG_COMPOSE_ENTRYPOINT
  561.  
  562. ##
  563. ## Adjust timezone
  564. ##
  565. - TIMEZONE
  566.  
  567. ##
  568. ## PHP-FPM Remote Server
  569. ##
  570. - PHP_FPM_ENABLE=1
  571. - PHP_FPM_SERVER_ADDR=php70
  572. - PHP_FPM_SERVER_PORT=9000
  573.  
  574. ## Tell the webserver to look into this directory
  575. ## for additional configuration files.
  576. ##
  577. ## @see volumes:: - ./etc/${HTTPD_SERVER}:/etc/${HTTPD_SERVER}
  578. - CUSTOM_HTTPD_CONF_DIR=/etc/${HTTPD_SERVER}
  579.  
  580. networks:
  581. app_net:
  582. ipv4_address: 172.16.238.170
  583.  
  584. volumes:
  585. # ---- Format: ----
  586. # HOST-DIRECTORY : DOCKER-DIRECTORY
  587.  
  588. # Custom scripts/binaries required for httpd server vhost
  589. # configuration to work.
  590. # (configured in /etc/${HTTPD_SERVER}/02-vhost-mass.conf)
  591. - ${DEVILBOX_PATH}/.devilbox/bin/${HTTPD_SERVER}:/opt/bin:ro
  592.  
  593. # Mount user-defined httpd configuration files
  594. # @see environment::CUSTOM_HTTPD_CONF_DIR for how this
  595. # is added in httpd server
  596. - ${DEVILBOX_PATH}/.devilbox/etc/${HTTPD_SERVER}/php70:/etc/${HTTPD_SERVER}:ro
  597.  
  598. # Mount custom intranet
  599. # (configured in /etc/${HTTPD_SERVER}/01-vhost-default.conf)
  600. - ${DEVILBOX_PATH}/.devilbox/www:/var/www/default:ro
  601.  
  602. # Mount user-defined httpd log
  603. # @see ./etc/${HTTPD_SERVER}/*.conf for log defines
  604. - ${DEVILBOX_PATH}/log/${HTTPD_SERVER}/php70:/var/log/${HTTPD_SERVER}
  605.  
  606. # Mount custom mass virtual hosting
  607. # (configured in /etc/${HTTPD_SERVER}/02-vhost-mass.conf)
  608. - ${HOST_PATH_HTTPD_DATADIR}/php70:/shared/httpd:ro
  609.  
  610. depends_on:
  611. - bind
  612. - httpd
  613. - php70
  614.  
  615. # ----------------------------------------
  616. # HTTPD for PHP 7.1
  617. # ----------------------------------------
  618. httpd71:
  619. image: cytopia/${HTTPD_SERVER:-nginx-stable}:latest
  620. #image: cytopia/${HTTPD_SERVER:-nginx-stable}:0.9
  621. restart: always
  622.  
  623. # Manually build via `docker-compose build`
  624. #build:
  625. #context: https://github.com/cytopia/docker-${HTTPD_SERVER}.git#1
  626. # context: https://github.com/cytopia/docker-${HTTPD_SERVER}.git
  627.  
  628. expose:
  629. - ${HOST_PORT_HTTPD71}
  630.  
  631. environment:
  632.  
  633. - VIRTUAL_HOST=dbox-tests.ml
  634. - VIRTUAL_PORT=8071
  635.  
  636. ##
  637. ## Debug?
  638. ##
  639. - DEBUG_COMPOSE_ENTRYPOINT
  640.  
  641. ##
  642. ## Adjust timezone
  643. ##
  644. - TIMEZONE
  645.  
  646. ##
  647. ## PHP-FPM Remote Server
  648. ##
  649. - PHP_FPM_ENABLE=1
  650. - PHP_FPM_SERVER_ADDR=php71
  651. - PHP_FPM_SERVER_PORT=9000
  652.  
  653. ## Tell the webserver to look into this directory
  654. ## for additional configuration files.
  655. ##
  656. ## @see volumes:: - ./etc/${HTTPD_SERVER}:/etc/${HTTPD_SERVER}
  657. - CUSTOM_HTTPD_CONF_DIR=/etc/${HTTPD_SERVER}
  658.  
  659. networks:
  660. app_net:
  661. ipv4_address: 172.16.238.171
  662.  
  663. volumes:
  664. # ---- Format: ----
  665. # HOST-DIRECTORY : DOCKER-DIRECTORY
  666.  
  667. # Custom scripts/binaries required for httpd server vhost
  668. # configuration to work.
  669. # (configured in /etc/${HTTPD_SERVER}/02-vhost-mass.conf)
  670. - ${DEVILBOX_PATH}/.devilbox/bin/${HTTPD_SERVER}:/opt/bin:ro
  671.  
  672. # Mount user-defined httpd configuration files
  673. # @see environment::CUSTOM_HTTPD_CONF_DIR for how this
  674. # is added in httpd server
  675. - ${DEVILBOX_PATH}/.devilbox/etc/${HTTPD_SERVER}/php71:/etc/${HTTPD_SERVER}:ro
  676.  
  677. # Mount custom intranet
  678. # (configured in /etc/${HTTPD_SERVER}/01-vhost-default.conf)
  679. - ${DEVILBOX_PATH}/.devilbox/www:/var/www/default:ro
  680.  
  681. # Mount user-defined httpd log
  682. # @see ./etc/${HTTPD_SERVER}/*.conf for log defines
  683. - ${DEVILBOX_PATH}/log/${HTTPD_SERVER}/php71:/var/log/${HTTPD_SERVER}
  684.  
  685. # Mount custom mass virtual hosting
  686. # (configured in /etc/${HTTPD_SERVER}/02-vhost-mass.conf)
  687. - ${HOST_PATH_HTTPD_DATADIR}/php71:/shared/httpd:ro
  688.  
  689. depends_on:
  690. - bind
  691. - httpd
  692. - php71
  693.  
  694. # ----------------------------------------
  695. # DATABASE
  696. # ----------------------------------------
  697. mysql:
  698. image: cytopia/${MYSQL_SERVER:-mariadb-10.1}:latest
  699. #image: cytopia/${MYSQL_SERVER:-mariadb-10.1}:0.9
  700.  
  701. # Manually build via `docker-compose build`
  702. #build:
  703. #context: https://github.com/cytopia/docker-${MYSQL_SERVER}.git#1
  704. # context: https://github.com/cytopia/docker-${MYSQL_SERVER}.git
  705.  
  706. environment:
  707.  
  708. ##
  709. ## Debug?
  710. ##
  711. - DEBUG_COMPOSE_ENTRYPOINT
  712.  
  713. ##
  714. ## Adjust timezone
  715. ##
  716. - TIMEZONE
  717.  
  718. ##
  719. ## Adjust Root password
  720. ##
  721. - MYSQL_ROOT_PASSWORD
  722.  
  723. ##
  724. ## Socket directory Path
  725. ##
  726. - MYSQL_SOCKET_DIR=/tmp/mysql
  727.  
  728. ##
  729. ## Runtime settings
  730. ##
  731. - MYSQL_GENERAL_LOG=${MYSQL_GENERAL_LOG}
  732.  
  733. ports:
  734. # [local-machine:]local-port:docker-port
  735. - "${LOCAL_LISTEN_ADDR}${HOST_PORT_MYSQL}:3306"
  736.  
  737. networks:
  738. app_net:
  739. ipv4_address: 172.16.238.12
  740.  
  741. volumes:
  742. # ---- Format: ----
  743. # HOST-DIRECTORY : DOCKER-DIRECTORY
  744.  
  745. # Mount logs
  746. - ${DEVILBOX_PATH}/log/${MYSQL_SERVER}:/var/log/mysql
  747.  
  748. # Mount devilbox default overwrites
  749. - ${DEVILBOX_PATH}/.devilbox/etc/${MYSQL_SERVER}:/etc/mysql/conf.d:ro
  750.  
  751. # Mount devilbox user-defined cnf files in order
  752. # to overwrite the MySQL server configuration
  753. - ${DEVILBOX_PATH}/cfg/${MYSQL_SERVER}:/etc/mysql/docker-default.d:ro
  754.  
  755. # Mount MySQL Data directory
  756. - ${HOST_PATH_MYSQL_DATADIR}/${MYSQL_SERVER}:/var/lib/mysql
  757.  
  758. depends_on:
  759. - bind
  760. - php56
  761. - httpd56
  762. - php70
  763. - httpd70
  764. - php71
  765. - httpd71
  766.  
  767.  
  768.  
  769. # ----------------------------------------
  770. # POSTGRESQL
  771. # ----------------------------------------
  772. pgsql:
  773. image: postgres:${PGSQL_SERVER:-9.6}
  774.  
  775. # Manually build via `docker-compose build`
  776. #build:
  777. #context: https://github.com/cytopia/docker-${MYSQL_SERVER}.git#1
  778. # context: https://github.com/cytopia/docker-${MYSQL_SERVER}.git
  779.  
  780. environment:
  781.  
  782. - POSTGRES_USER=${PGSQL_ROOT_USER}
  783. - POSTGRES_PASSWORD=${PGSQL_ROOT_PASSWORD}
  784. - PGDATA=/var/lib/postgresql/data/pgdata
  785.  
  786. ports:
  787. # [local-machine:]local-port:docker-port
  788. - "${LOCAL_LISTEN_ADDR}${HOST_PORT_PGSQL}:5432"
  789.  
  790. networks:
  791. app_net:
  792. ipv4_address: 172.16.238.13
  793.  
  794. volumes:
  795. # ---- Format: ----
  796. # HOST-DIRECTORY : DOCKER-DIRECTORY
  797.  
  798. # Mount logs
  799. - ${DEVILBOX_PATH}/log/pgsql-${PGSQL_SERVER}:/var/log/postgresql
  800.  
  801. # Mount PostgreSQL Data directory
  802. - ${HOST_PATH_PGSQL_DATADIR}/${PGSQL_SERVER}:/var/lib/postgresql/data/pgdata
  803.  
  804. depends_on:
  805. - bind
  806. - php56
  807. - httpd56
  808. - php70
  809. - httpd70
  810. - php71
  811. - httpd71
  812.  
  813.  
  814. # ----------------------------------------
  815. # Redis
  816. # ----------------------------------------
  817. redis:
  818. image: redis:${REDIS_SERVER:-3.2}
  819.  
  820. ports:
  821. # [local-machine:]local-port:docker-port
  822. - "${LOCAL_LISTEN_ADDR}${HOST_PORT_REDIS}:6379"
  823.  
  824. networks:
  825. app_net:
  826. ipv4_address: 172.16.238.14
  827.  
  828. volumes:
  829. # ---- Format: ----
  830. # HOST-DIRECTORY : DOCKER-DIRECTORY
  831.  
  832. # Mount logs
  833. - ${DEVILBOX_PATH}/log/redis-${REDIS_SERVER}:/var/log/redis
  834.  
  835. depends_on:
  836. - bind
  837. - php56
  838. - httpd56
  839. - php70
  840. - httpd70
  841. - php71
  842. - httpd71
  843.  
  844.  
  845. # ----------------------------------------
  846. # Memcached
  847. # ----------------------------------------
  848. memcd:
  849. image: memcached:${MEMCD_SERVER:-latest}
  850.  
  851. ports:
  852. # [local-machine:]local-port:docker-port
  853. - "${LOCAL_LISTEN_ADDR}${HOST_PORT_MEMCD}:11211"
  854.  
  855. networks:
  856. app_net:
  857. ipv4_address: 172.16.238.15
  858.  
  859. volumes:
  860. # ---- Format: ----
  861. # HOST-DIRECTORY : DOCKER-DIRECTORY
  862.  
  863. # Mount logs
  864. - ${DEVILBOX_PATH}/log/memcd-${MEMCD_SERVER}:/var/log/memcd
  865.  
  866. depends_on:
  867. - bind
  868. - php56
  869. - httpd56
  870. - php70
  871. - httpd70
  872. - php71
  873. - httpd71
  874.  
  875.  
  876. # ----------------------------------------
  877. # Mongo
  878. # ----------------------------------------
  879. mongo:
  880. image: mongo:${MONGO_SERVER:-latest}
  881.  
  882. ports:
  883. # [local-machine:]local-port:docker-port
  884. - "${LOCAL_LISTEN_ADDR}${HOST_PORT_MONGO}:27017"
  885.  
  886. networks:
  887. app_net:
  888. ipv4_address: 172.16.238.16
  889.  
  890. volumes:
  891. # ---- Format: ----
  892. # HOST-DIRECTORY : DOCKER-DIRECTORY
  893.  
  894. # Mount MongoDB Data directory
  895. - ${HOST_PATH_MONGO_DATADIR}/${MONGO_SERVER}:/data/db
  896.  
  897. depends_on:
  898. - bind
  899. - php56
  900. - httpd56
  901. - php70
  902. - httpd70
  903. - php71
  904. - httpd71
  905.  
  906.  
  907. ################################################################################
  908. # NETWORK
  909. ################################################################################
  910. networks:
  911. app_net:
  912. driver: bridge
  913. driver_opts:
  914. com.docker.network.enable_ipv6: "false"
  915. ipam:
  916. driver: default
  917. config:
  918. - subnet: 172.16.238.0/24
  919. gateway: 172.16.238.1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement