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.

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