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.

95 lines
2.5 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. - CUSTOM_NODE_VERSION=${WORKSPACE_CUSTOM_NODE_VERSION}
  41. - PHP_OPT_SHORT_OPEN_TAG=${PHP_OPT_SHORT_OPEN_TAG}
  42. - PHP_OPT_MAX_EXECUTION_TIME=${PHP_OPT_MAX_EXECUTION_TIME}
  43. - PHP_OPT_MEMORY_LIMIT=${PHP_OPT_MEMORY_LIMIT}
  44. - PHP_OPT_POST_MAX_SIZE=${PHP_OPT_POST_MAX_SIZE}
  45. - PHP_OPT_UPLOAD_MAX_FILESIZE=${PHP_OPT_UPLOAD_MAX_FILESIZE}
  46. restart: always
  47. volumes:
  48. - ${PROJECTS_DIR}:/var/www
  49. extra_hosts:
  50. - "dockerhost:${DOCKER_HOST_IP}"
  51. secrets:
  52. - user_ssh_key
  53. - user_known_hosts
  54. - composer_auth
  55. inbucket:
  56. image: inbucket/inbucket
  57. restart: always
  58. ports:
  59. - "2500:2500"
  60. - "9090:9000"
  61. db:
  62. image: mariadb
  63. restart: always
  64. environment:
  65. MYSQL_ROOT_PASSWORD: 123456
  66. ports:
  67. - "3306:3306"
  68. pma:
  69. image: phpmyadmin/phpmyadmin
  70. restart: always
  71. environment:
  72. PMA_HOST: db
  73. PMA_USER: root
  74. PMA_PASSWORD: 123456
  75. ports:
  76. - "81:80"
  77. redis:
  78. image: redis
  79. restart: always
  80. command: [ "redis-server", "/usr/local/etc/redis/redis.conf" ]
  81. volumes:
  82. - ./config/redis/redis.conf:/usr/local/etc/redis/redis.conf
  83. # Must be copied into main docker-compose yml-file
  84. volumes:
  85. database:
  86. secrets:
  87. user_ssh_key:
  88. file: ~/.ssh/id_rsa
  89. user_known_hosts:
  90. file: ~/.ssh/known_hosts
  91. composer_auth:
  92. file: ~/.config/composer/auth.json