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.

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