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.

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