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

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. version: "3"
  2. services:
  3. webserver:
  4. build:
  5. context: ./bin/webserver
  6. container_name: 'png-webserver'
  7. restart: 'always'
  8. ports:
  9. - "80:80"
  10. - "443: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. mysql:
  19. build: ./bin/mysql
  20. container_name: 'png-mysql'
  21. restart: 'always'
  22. ports:
  23. - "3306:3306"
  24. volumes:
  25. - ${MYSQL_DATA_DIR-./data/mysql}:/var/lib/mysql
  26. - ${MYSQL_LOG_DIR-./logs/mysql}:/var/log/mysql
  27. environment:
  28. MYSQL_ROOT_PASSWORD: tiger
  29. MYSQL_DATABASE: png
  30. MYSQL_USER: png
  31. MYSQL_PASSWORD: png
  32. phpmyadmin:
  33. image: phpmyadmin/phpmyadmin
  34. container_name: 'png-phpmyadmin'
  35. links:
  36. - mysql
  37. environment:
  38. PMA_HOST: mysql
  39. PMA_PORT: 3306
  40. ports:
  41. - '8080:80'
  42. volumes:
  43. - /sessions