No Description
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.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. version: "3"
  2. services:
  3. webserver:
  4. image: 7.2.x-webserver
  5. build:
  6. context: ./bin/webserver
  7. container_name: '7.2.x-webserver'
  8. restart: 'always'
  9. ports:
  10. - "${HOST_MACHINE_UNSECURE_HOST_PORT}:80"
  11. - "${HOST_MACHINE_SECURE_HOST_PORT}:443"
  12. links:
  13. - mysql
  14. volumes:
  15. - ${DOCUMENT_ROOT-./www}:/var/www/html
  16. - ${PHP_INI-./config/php/php.ini}:/usr/local/etc/php/php.ini
  17. - ${VHOSTS_DIR-./config/vhosts}:/etc/apache2/sites-enabled
  18. - ${LOG_DIR-./logs/apache2}:/var/log/apache2
  19. mysql:
  20. build: ./bin/mysql
  21. container_name: '5.7-mysql'
  22. restart: 'always'
  23. ports:
  24. - "${HOST_MACHINE_MYSQL_PORT}:3306"
  25. volumes:
  26. - ${MYSQL_DATA_DIR-./data/mysql}:/var/lib/mysql
  27. - ${MYSQL_LOG_DIR-./logs/mysql}:/var/log/mysql
  28. environment:
  29. MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
  30. MYSQL_DATABASE: ${MYSQL_DATABASE}
  31. MYSQL_USER: ${MYSQL_USER}
  32. MYSQL_PASSWORD: ${MYSQL_PASSWORD}
  33. phpmyadmin:
  34. image: phpmyadmin/phpmyadmin
  35. container_name: 'phpmyadmin'
  36. links:
  37. - mysql
  38. environment:
  39. PMA_HOST: mysql
  40. PMA_PORT: 3306
  41. ports:
  42. - '8080:80'
  43. volumes:
  44. - /sessions