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.

121 lines
3.4 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. - CUSTOM_TZ=${CUSTOM_TZ}
  19. - CUSTOM_LOCALE=${CUSTOM_LOCALE}
  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. - PHP_OPT_MAX_EXECUTION_TIME=${PHP_OPT_MAX_EXECUTION_TIME}
  24. # Other args that might be used for customize in every separate container
  25. # - INSTALL_PEAR_MAIL=true
  26. # - INSTALL_LIBREOFFICE=true
  27. # - INSTALL_NUC_CERTS=true
  28. # - PHP_OPT_SHORT_OPEN_TAG=On
  29. restart: always
  30. volumes:
  31. - ${PROJECTS_DIR}:/usr/share/nginx/html
  32. - ./data/profiler:/tmp/profiler
  33. workspace:
  34. build:
  35. context: ./dockerfiles/workspace
  36. args:
  37. - CUSTOM_TZ=${CUSTOM_TZ}
  38. - CUSTOM_LOCALE=${CUSTOM_LOCALE}
  39. - CUSTOM_PUID=${WORKSPACE_PUID}
  40. - CUSTOM_PGID=${WORKSPACE_PGID}
  41. - INSTALL_YADM=${WORKSPACE_INSTALL_YADM}
  42. - INSTALL_FINE_UTILS=${WORKSPACE_INSTALL_FINE_UTILS}
  43. - PHP_OPT_MEMORY_LIMIT=${WORKSPACE_PHP_OPT_MEMORY_LIMIT}
  44. # Other args that might be used for customize in every separate container
  45. # - CUSTOM_COMPOSER_VERSION=1
  46. # - INSTALL_WP_CLI=true
  47. # - INSTALL_PEAR_MAIL=true
  48. # - INSTALL_NODE=true
  49. # - NODE_VERSION=v18.18.0
  50. # - INSTALL_PYTHON=true
  51. # - PYTHON_VERSION=3.12
  52. # - INSTALL_SUPERVISOR=false # Not ready
  53. # - INSTALL_LIBREOFFICE=true
  54. # - INSTALL_NUC_CERTS=true
  55. # - PHP_OPT_SHORT_OPEN_TAG=On
  56. restart: always
  57. volumes:
  58. - ${PROJECTS_DIR}:/var/www
  59. - ./data/profiler:/tmp/profiler
  60. - ./config/supervisor:/etc/supervisor/conf.d
  61. extra_hosts:
  62. - "dockerhost:${DOCKER_HOST_IP}"
  63. secrets:
  64. - user_ssh_key
  65. - user_known_hosts
  66. - composer_auth
  67. db:
  68. image: mariadb
  69. restart: always
  70. environment:
  71. MYSQL_ROOT_PASSWORD: 123456
  72. volumes:
  73. - database:/var/lib/mysql
  74. - ./hostfiles:/hostfiles
  75. - ./log/mariadb:/var/log/mariadb
  76. - ./config/mariadb:/etc/mysql/conf.d
  77. security_opt:
  78. - seccomp=unconfined
  79. pma:
  80. image: phpmyadmin/phpmyadmin
  81. restart: always
  82. environment:
  83. PMA_HOST: db
  84. PMA_USER: root
  85. PMA_PASSWORD: 123456
  86. inbucket:
  87. image: inbucket/inbucket
  88. restart: always
  89. expose:
  90. - 2500
  91. redis:
  92. image: redis
  93. restart: always
  94. command: [ "redis-server", "/usr/local/etc/redis/redis.conf" ]
  95. volumes:
  96. - ./config/redis/redis.conf:/usr/local/etc/redis/redis.conf
  97. - ./config/redis/redis-local.conf:/usr/local/etc/redis/redis-local.conf
  98. elastic:
  99. build:
  100. context: ./dockerfiles/elastic
  101. restart: on-failure
  102. environment:
  103. - discovery.type=single-node
  104. - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
  105. ulimits:
  106. memlock:
  107. soft: -1
  108. hard: -1
  109. expose:
  110. - "9200"
  111. - "9300"
  112. minio:
  113. image: minio/minio:RELEASE.2020-06-12T00-06-19Z
  114. restart: always
  115. command: server /minio
  116. pm2:
  117. build:
  118. context: ./dockerfiles/pm2
  119. restart: always
  120. expose:
  121. - 3000