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.

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