You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

docker-compose.yml 1.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. version: "3"
  2. services:
  3. webserver:
  4. build:
  5. context: ./bin/webserver
  6. container_name: '7.3.x-webserver'
  7. restart: 'always'
  8. ports:
  9. - "${HOST_MACHINE_UNSECURE_HOST_PORT}:80"
  10. - "${HOST_MACHINE_SECURE_HOST_PORT}:443"
  11. links:
  12. - mysql
  13. volumes:
  14. - ${DOCUMENT_ROOT-./www}:/var/www/html
  15. - ${PHP_INI-./config/php/php.ini}:/usr/local/etc/php/php.ini
  16. - ${VHOSTS_DIR-./config/vhosts}:/etc/apache2/sites-enabled
  17. - ${LOG_DIR-./logs/apache2}:/var/log/apache2
  18. environment:
  19. HTTP_PORT: ${HOST_MACHINE_UNSECURE_HOST_PORT}
  20. MYSQL_USER: ${MYSQL_USER}
  21. MYSQL_PASSWORD: ${MYSQL_PASSWORD}
  22. MYSQL_DATABASE: ${MYSQL_DATABASE}
  23. MYSQL_SERVER: mysql
  24. mysql:
  25. build:
  26. context: "./bin/${DATABASE}"
  27. container_name: '5.7-mysql'
  28. restart: 'always'
  29. ports:
  30. - "${HOST_MACHINE_MYSQL_PORT}:3306"
  31. volumes:
  32. - ${MYSQL_DATA_DIR-./data/mysql}:/var/lib/mysql
  33. - ${MYSQL_LOG_DIR-./logs/mysql}:/var/log/mysql
  34. environment:
  35. MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
  36. MYSQL_DATABASE: ${MYSQL_DATABASE}
  37. MYSQL_USER: ${MYSQL_USER}
  38. MYSQL_PASSWORD: ${MYSQL_PASSWORD}
  39. phpmyadmin:
  40. image: phpmyadmin/phpmyadmin
  41. container_name: 'sc-phpmyadmin'
  42. links:
  43. - mysql
  44. environment:
  45. PMA_HOST: mysql
  46. PMA_PORT: 3306
  47. PMA_USER: ${MYSQL_USER}
  48. PMA_PASSWORD: ${MYSQL_PASSWORD}
  49. MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
  50. MYSQL_USER: ${MYSQL_USER}
  51. MYSQL_PASSWORD: ${MYSQL_PASSWORD}
  52. ports:
  53. - '8080:80'
  54. volumes:
  55. - /sessions
  56. redis:
  57. container_name: 'sc-redis'
  58. image: redis:latest
  59. ports:
  60. - "${HOST_MACHINE_REDIS_PORT}:6379"