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.

79 lines
2.0 KiB

  1. version: '3.6'
  2. services:
  3. nginx:
  4. image: nginx
  5. restart: always
  6. networks:
  7. default:
  8. aliases:
  9. - loc.10ballov
  10. volumes:
  11. - ${PROJECTS_DIR}:/usr/share/nginx/html
  12. - ./config/nginx/conf.d:/etc/nginx/conf.d
  13. - ./config/nginx/includes.d:/etc/nginx/includes.d
  14. - ./log/nginx:/var/log/nginx
  15. ports:
  16. - "80:80"
  17. - "443:443"
  18. expose:
  19. - 80
  20. php-fpm:
  21. build:
  22. context: ./dockerfiles/php-fpm
  23. args:
  24. - INSTALL_XDEBUG=${INSTALL_XDEBUG}
  25. - INSTALL_REDIS=${INSTALL_REDIS}
  26. - INSTALL_ZIP=${INSTALL_ZIP}
  27. - INSTALL_BZ2=${INSTALL_BZ2}
  28. - INSTALL_INTL=${INSTALL_INTL}
  29. - INSTALL_PGSQL=${INSTALL_PGSQL}
  30. - INSTALL_BCMATH=${INSTALL_BCMATH}
  31. - INSTALL_PEAR_MAIL=${INSTALL_PEAR_MAIL}
  32. - PHP_OPT_SHORT_OPEN_TAG=${PHP_OPT_SHORT_OPEN_TAG}
  33. - PHP_OPT_MAX_EXECUTION_TIME=${PHP_OPT_MAX_EXECUTION_TIME}
  34. - PHP_OPT_MEMORY_LIMIT=${PHP_OPT_MEMORY_LIMIT}
  35. - PHP_OPT_UPLOAD_MAX_FILESIZE=${PHP_OPT_UPLOAD_MAX_FILESIZE}
  36. restart: always
  37. volumes:
  38. - ${PROJECTS_DIR}:/usr/share/nginx/html
  39. expose:
  40. - 9000
  41. workspace:
  42. build:
  43. context: ./dockerfiles/workspace
  44. args:
  45. - PUID=${WORKSPACE_PUID}
  46. - PGID=${WORKSPACE_PGID}
  47. - TZ=${WORKSPACE_TIMEZONE}
  48. restart: always
  49. volumes:
  50. - ${PROJECTS_DIR}:/var/www
  51. extra_hosts:
  52. - "dockerhost:${DOCKER_HOST_IP}"
  53. db:
  54. image: mariadb
  55. restart: always
  56. environment:
  57. MYSQL_ROOT_PASSWORD: 123456
  58. ports:
  59. - "3306:3306"
  60. pma:
  61. image: phpmyadmin/phpmyadmin
  62. restart: always
  63. environment:
  64. PMA_HOST: db
  65. PMA_USER: root
  66. PMA_PASSWORD: 123456
  67. ports:
  68. - "81:80"
  69. redis:
  70. image: redis
  71. restart: always
  72. command: [ "redis-server", "/usr/local/etc/redis/redis.conf" ]
  73. volumes:
  74. - ./config/redis/redis.conf:/usr/local/etc/redis/redis.conf
  75. # Must be copied into main docker-compose yml-file
  76. volumes:
  77. database: