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.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. version: "3"
  2. services:
  3. webserver:
  4. image: 5.6.x-webserver
  5. build:
  6. context: ./bin/webserver
  7. container_name: '5.6.x-webserver'
  8. restart: 'always'
  9. ports:
  10. - "80:80"
  11. - "443: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. - "3306: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: tiger
  30. phpmyadmin:
  31. image: phpmyadmin/phpmyadmin
  32. container_name: 'sc-phpmyadmin'
  33. links:
  34. - mysql
  35. environment:
  36. PMA_HOST: mysql
  37. PMA_PORT: 3306
  38. ports:
  39. - '8080:80'
  40. volumes:
  41. - /sessions
  42. redis:
  43. container_name: 'sc-redis'
  44. image: redis:latest
  45. ports:
  46. - "6379:6379"