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.

107 lines
3.0 KiB

  1. services:
  2. nginx:
  3. image: nginx
  4. restart: always
  5. volumes:
  6. - ${PROJECTS_DIR}:/usr/share/nginx/html
  7. - ./config/nginx/conf.d:/etc/nginx/conf.d
  8. - ./config/nginx/includes.d:/etc/nginx/includes.d
  9. - ./config/nginx/ssl.d:/etc/nginx/ssl.d
  10. - ./log/nginx:/var/log/nginx
  11. ports:
  12. - "80:80"
  13. - "443:443"
  14. php:
  15. build:
  16. context: ./dockerfiles/php-fpm
  17. args:
  18. - INSTALL_REDIS=${INSTALL_REDIS}
  19. - INSTALL_PEAR_MAIL=${INSTALL_PEAR_MAIL}
  20. - INSTALL_LIBREOFFICE=${INSTALL_LIBREOFFICE}
  21. - PHP_OPT_SHORT_OPEN_TAG=${PHP_OPT_SHORT_OPEN_TAG}
  22. - PHP_OPT_MAX_EXECUTION_TIME=${PHP_OPT_MAX_EXECUTION_TIME}
  23. - PHP_OPT_MEMORY_LIMIT=${PHP_OPT_MEMORY_LIMIT}
  24. - PHP_OPT_POST_MAX_SIZE=${PHP_OPT_POST_MAX_SIZE}
  25. - PHP_OPT_UPLOAD_MAX_FILESIZE=${PHP_OPT_UPLOAD_MAX_FILESIZE}
  26. restart: always
  27. volumes:
  28. - ${PROJECTS_DIR}:/usr/share/nginx/html
  29. - ./data/profiler:/tmp/profiler
  30. workspace:
  31. build:
  32. context: ./dockerfiles/workspace
  33. args:
  34. - INSTALL_REDIS=${INSTALL_REDIS}
  35. - INSTALL_PEAR_MAIL=${INSTALL_PEAR_MAIL}
  36. - INSTALL_LIBREOFFICE=${INSTALL_LIBREOFFICE}
  37. - CUSTOM_PUID=${WORKSPACE_PUID}
  38. - CUSTOM_PGID=${WORKSPACE_PGID}
  39. - CUSTOM_TZ=${WORKSPACE_TIMEZONE}
  40. - PHP_OPT_SHORT_OPEN_TAG=${PHP_OPT_SHORT_OPEN_TAG}
  41. - PHP_OPT_MAX_EXECUTION_TIME=${WORKSPACE_PHP_OPT_MAX_EXECUTION_TIME}
  42. - PHP_OPT_MEMORY_LIMIT=${WORKSPACE_PHP_OPT_MEMORY_LIMIT}
  43. restart: always
  44. volumes:
  45. - ${PROJECTS_DIR}:/var/www
  46. extra_hosts:
  47. - "dockerhost:${DOCKER_HOST_IP}"
  48. secrets:
  49. - user_ssh_key
  50. - user_known_hosts
  51. - composer_auth
  52. db:
  53. image: mariadb
  54. restart: always
  55. environment:
  56. MYSQL_ROOT_PASSWORD: 123456
  57. volumes:
  58. - database:/var/lib/mysql
  59. - ./hostfiles:/hostfiles
  60. - ./log/mariadb:/var/log/mariadb
  61. - ./config/mariadb:/etc/mysql/conf.d
  62. security_opt:
  63. - seccomp=unconfined
  64. pma:
  65. image: phpmyadmin/phpmyadmin
  66. restart: always
  67. environment:
  68. PMA_HOST: db
  69. PMA_USER: root
  70. PMA_PASSWORD: 123456
  71. inbucket:
  72. image: inbucket/inbucket
  73. restart: always
  74. expose:
  75. - 2500
  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
  82. elastic:
  83. build:
  84. context: ./dockerfiles/elastic
  85. restart: on-failure
  86. environment:
  87. - discovery.type=single-node
  88. - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
  89. ulimits:
  90. memlock:
  91. soft: -1
  92. hard: -1
  93. expose:
  94. - "9200"
  95. - "9300"
  96. minio:
  97. image: minio/minio:RELEASE.2020-06-12T00-06-19Z
  98. restart: always
  99. environment:
  100. MINIO_ACCESS_KEY: ${MINIO_ACCESS_KEY}
  101. MINIO_SECRET_KEY: ${MINIO_SECRET_KEY}
  102. command: server /minio
  103. pm2:
  104. build:
  105. context: ./dockerfiles/pm2
  106. restart: always
  107. expose:
  108. - 3000