2
0

docker-compose.yml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. # Mark Shust's Docker Configuration for Magento (https://github.com/markoshust/docker-magento)
  2. # Version 20.1.0
  3. version: "3"
  4. services:
  5. app:
  6. build: images/nginx
  7. ports:
  8. - "80:8000"
  9. - "443:8443"
  10. links:
  11. - db
  12. - phpfpm
  13. volumes: &appvolumes
  14. - ./src:/var/www/html:delegated
  15. - ~/.composer:/var/www/.composer:delegated
  16. - appdata:/sock
  17. phpfpm:
  18. image: markoshust/magento-php:5.6-fpm-6
  19. links:
  20. - db
  21. volumes: *appvolumes
  22. # Linux only: host.docker.internal doesn't exist https://github.com/docker/for-linux/issues/264
  23. # Uncomment two lines below & replace IP with result of: docker run --rm alpine ip route | awk 'NR==1 {print $3}'
  24. #extra_hosts:
  25. # - "host.docker.internal:IP"
  26. # Disabling cron by default as it uses higher CPU, enable if needed
  27. #cron:
  28. # image: markoshust/magento-php:5.6-fpm-6
  29. # user: root
  30. # command: /usr/local/bin/cronstart
  31. # tty: true
  32. # links:
  33. # - db
  34. # volumes: *appvolumes
  35. db:
  36. image: percona:5.7
  37. ports:
  38. - "3306:3306"
  39. env_file: env/db.env
  40. volumes:
  41. - dbdata:/var/lib/mysql
  42. elasticsearch:
  43. image: elasticsearch:5.6
  44. ports:
  45. - "9200:9200"
  46. - "9300:9300"
  47. volumes:
  48. appdata:
  49. dbdata: