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.

72 lines
1.7 KiB

  1. version: '3.6'
  2. services:
  3. nginx:
  4. image: nginx
  5. restart: always
  6. networks:
  7. default:
  8. aliases:
  9. - loc.10ballov
  10. volumes:
  11. - ${PROJECTS_DIR}:/usr/share/nginx/html
  12. - ./config/nginx/conf.d:/etc/nginx/conf.d
  13. - ./config/nginx/includes.d:/etc/nginx/includes.d
  14. - ./log/nginx:/var/log/nginx
  15. ports:
  16. - "80:80"
  17. - "443:443"
  18. expose:
  19. - 80
  20. php-fpm:
  21. build:
  22. context: ./dockerfiles/php-fpm
  23. args:
  24. - INSTALL_PEAR_MAIL=${INSTALL_PEAR_MAIL}
  25. - PHP_OPT_SHORT_OPEN_TAG=${PHP_OPT_SHORT_OPEN_TAG}
  26. - PHP_OPT_MAX_EXECUTION_TIME=${PHP_OPT_MAX_EXECUTION_TIME}
  27. - PHP_OPT_MEMORY_LIMIT=${PHP_OPT_MEMORY_LIMIT}
  28. - PHP_OPT_UPLOAD_MAX_FILESIZE=${PHP_OPT_UPLOAD_MAX_FILESIZE}
  29. restart: always
  30. volumes:
  31. - ${PROJECTS_DIR}:/usr/share/nginx/html
  32. expose:
  33. - 9000
  34. workspace:
  35. build:
  36. context: ./dockerfiles/workspace
  37. args:
  38. - PUID=${WORKSPACE_PUID}
  39. - PGID=${WORKSPACE_PGID}
  40. - TZ=${WORKSPACE_TIMEZONE}
  41. restart: always
  42. volumes:
  43. - ${PROJECTS_DIR}:/var/www
  44. extra_hosts:
  45. - "dockerhost:${DOCKER_HOST_IP}"
  46. db:
  47. image: mariadb
  48. restart: always
  49. environment:
  50. MYSQL_ROOT_PASSWORD: 123456
  51. ports:
  52. - "3306:3306"
  53. pma:
  54. image: phpmyadmin/phpmyadmin
  55. restart: always
  56. environment:
  57. PMA_HOST: db
  58. PMA_USER: root
  59. PMA_PASSWORD: 123456
  60. ports:
  61. - "81:80"
  62. redis:
  63. image: redis
  64. restart: always
  65. command: [ "redis-server", "/usr/local/etc/redis/redis.conf" ]
  66. volumes:
  67. - ./config/redis/redis.conf:/usr/local/etc/redis/redis.conf
  68. # Must be copied into main docker-compose yml-file
  69. volumes:
  70. database: