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.

105 lines
2.9 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. redis:
  75. image: redis
  76. restart: always
  77. command: [ "redis-server", "/usr/local/etc/redis/redis.conf" ]
  78. volumes:
  79. - ./config/redis/redis.conf:/usr/local/etc/redis/redis.conf
  80. elastic:
  81. build:
  82. context: ./dockerfiles/elastic
  83. restart: on-failure
  84. environment:
  85. - discovery.type=single-node
  86. - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
  87. ulimits:
  88. memlock:
  89. soft: -1
  90. hard: -1
  91. expose:
  92. - "9200"
  93. - "9300"
  94. minio:
  95. image: minio/minio:RELEASE.2020-06-12T00-06-19Z
  96. restart: always
  97. environment:
  98. MINIO_ACCESS_KEY: ${MINIO_ACCESS_KEY}
  99. MINIO_SECRET_KEY: ${MINIO_SECRET_KEY}
  100. command: server /minio
  101. pm2:
  102. build:
  103. context: ./dockerfiles/pm2
  104. restart: always
  105. expose:
  106. - 3000