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.

89 lines
2.1 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_UPLOAD_MAX_FILESIZE=${PHP_OPT_UPLOAD_MAX_FILESIZE}
  26. restart: always
  27. volumes:
  28. - ${PROJECTS_DIR}:/usr/share/nginx/html
  29. - ./data/profiler:/tmp
  30. expose:
  31. - 9000
  32. workspace:
  33. build:
  34. context: ./dockerfiles/workspace
  35. args:
  36. - CUSTOM_PUID=${WORKSPACE_PUID}
  37. - CUSTOM_PGID=${WORKSPACE_PGID}
  38. - CUSTOM_TZ=${WORKSPACE_TIMEZONE}
  39. - CUSTOM_NODE_VERSION=${WORKSPACE_CUSTOM_NODE_VERSION}
  40. restart: always
  41. volumes:
  42. - ${PROJECTS_DIR}:/var/www
  43. extra_hosts:
  44. - "dockerhost:${DOCKER_HOST_IP}"
  45. secrets:
  46. - user_ssh_key
  47. - user_known_hosts
  48. - composer_auth
  49. inbucket:
  50. image: inbucket/inbucket
  51. restart: always
  52. ports:
  53. - "2500:2500"
  54. - "9090:9000"
  55. db:
  56. image: mariadb
  57. restart: always
  58. environment:
  59. MYSQL_ROOT_PASSWORD: 123456
  60. ports:
  61. - "3306:3306"
  62. pma:
  63. image: phpmyadmin/phpmyadmin
  64. restart: always
  65. environment:
  66. PMA_HOST: db
  67. PMA_USER: root
  68. PMA_PASSWORD: 123456
  69. ports:
  70. - "81:80"
  71. redis:
  72. image: redis
  73. restart: always
  74. command: [ "redis-server", "/usr/local/etc/redis/redis.conf" ]
  75. volumes:
  76. - ./config/redis/redis.conf:/usr/local/etc/redis/redis.conf
  77. # Must be copied into main docker-compose yml-file
  78. volumes:
  79. database:
  80. secrets:
  81. user_ssh_key:
  82. file: ~/.ssh/id_rsa
  83. user_known_hosts:
  84. file: ~/.ssh/known_hosts
  85. composer_auth:
  86. file: ~/.composer/auth.json