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.

82 lines
2.3 KiB

  1. version: '3.6'
  2. services:
  3. nginx:
  4. image: nginx
  5. restart: always
  6. volumes:
  7. - ${PROJECTS_DIR}:/usr/share/nginx/html
  8. - ./config/nginx/conf.d:/etc/nginx/conf.d
  9. - ./config/nginx/includes.d:/etc/nginx/includes.d
  10. - ./log/nginx:/var/log/nginx
  11. ports:
  12. - "80:80"
  13. php:
  14. build:
  15. context: ./dockerfiles/php-fpm
  16. args:
  17. - INSTALL_REDIS=${INSTALL_REDIS}
  18. - INSTALL_PEAR_MAIL=${INSTALL_PEAR_MAIL}
  19. - PHP_OPT_SHORT_OPEN_TAG=${PHP_OPT_SHORT_OPEN_TAG}
  20. - PHP_OPT_MAX_EXECUTION_TIME=${PHP_OPT_MAX_EXECUTION_TIME}
  21. - PHP_OPT_MEMORY_LIMIT=${PHP_OPT_MEMORY_LIMIT}
  22. - PHP_OPT_POST_MAX_SIZE=${PHP_OPT_POST_MAX_SIZE}
  23. - PHP_OPT_UPLOAD_MAX_FILESIZE=${PHP_OPT_UPLOAD_MAX_FILESIZE}
  24. restart: always
  25. volumes:
  26. - ${PROJECTS_DIR}:/usr/share/nginx/html
  27. - ./data/profiler:/tmp/profiler
  28. workspace:
  29. build:
  30. context: ./dockerfiles/workspace
  31. args:
  32. - CUSTOM_PUID=${WORKSPACE_PUID}
  33. - CUSTOM_PGID=${WORKSPACE_PGID}
  34. - CUSTOM_TZ=${WORKSPACE_TIMEZONE}
  35. - COMPOSER_VERSION=${WORKSPACE_COMPOSER_VERSION}
  36. - CUSTOM_NODE_VERSION=${WORKSPACE_CUSTOM_NODE_VERSION}
  37. - PHP_OPT_SHORT_OPEN_TAG=${PHP_OPT_SHORT_OPEN_TAG}
  38. - PHP_OPT_MAX_EXECUTION_TIME=${WORKSPACE_PHP_OPT_MAX_EXECUTION_TIME}
  39. - PHP_OPT_MEMORY_LIMIT=${WORKSPACE_PHP_OPT_MEMORY_LIMIT}
  40. restart: always
  41. volumes:
  42. - ${PROJECTS_DIR}:/var/www
  43. extra_hosts:
  44. - "dockerhost:${DOCKER_HOST_IP}"
  45. secrets:
  46. - user_ssh_key
  47. - user_known_hosts
  48. - composer_auth
  49. db:
  50. image: mariadb
  51. restart: always
  52. environment:
  53. MYSQL_ROOT_PASSWORD: 123456
  54. ports:
  55. - "3306:3306"
  56. volumes:
  57. - database:/var/lib/mysql
  58. - ./hostfiles:/hostfiles
  59. - ./log/mariadb:/var/log/mariadb
  60. - ./config/mariadb:/etc/mysql/conf.d
  61. pma:
  62. image: phpmyadmin/phpmyadmin
  63. restart: always
  64. environment:
  65. PMA_HOST: db
  66. PMA_USER: root
  67. PMA_PASSWORD: 123456
  68. ports:
  69. - "81:80"
  70. inbucket:
  71. image: inbucket/inbucket
  72. restart: always
  73. ports:
  74. - "2500:2500"
  75. - "9090:9000"
  76. redis:
  77. image: redis
  78. restart: always
  79. command: [ "redis-server", "/usr/local/etc/redis/redis.conf" ]
  80. volumes:
  81. - ./config/redis/redis.conf:/usr/local/etc/redis/redis.conf