1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- # Mark Shust's Docker Configuration for Magento (https://github.com/markoshust/docker-magento)
- # Version 20.1.1
- version: "3"
- services:
- app:
- image: markoshust/magento-nginx:1.13-6
- ports:
- - "80:8000"
- - "443:8443"
- links:
- - db
- - phpfpm
- volumes: &appvolumes
- - ./src:/var/www/html:delegated
- - ~/.composer:/var/www/.composer:delegated
- - appdata:/sock
- # Linux only: comment the below volume mounts
- - appdata:/var/www/html/app
- - appdata:/var/www/html/bin
- - appdata:/var/www/html/dev
- - appdata:/var/www/html/generated
- - appdata:/var/www/html/lib
- - appdata:/var/www/html/phpserver
- - appdata:/var/www/html/pub
- - appdata:/var/www/html/setup
- - appdata:/var/www/html/update
- - appdata:/var/www/html/var
- - appdata:/var/www/html/vendor
- phpfpm:
- image: markoshust/magento-php:7.2-fpm-0
- links:
- - db
- volumes: *appvolumes
- # Linux only: host.docker.internal doesn't exist https://github.com/docker/for-linux/issues/264
- # Uncomment two lines below & replace IP with result of: docker run --rm alpine ip route | awk 'NR==1 {print $3}'
- #extra_hosts:
- # - "host.docker.internal:IP"
- # Disabling cron by default as it uses higher CPU, enable if needed
- #cron:
- # image: markoshust/magento-php:7.2-fpm-0
- # user: root
- # command: /usr/local/bin/cronstart
- # tty: true
- # links:
- # - db
- # volumes: *appvolumes
- db:
- image: percona:5.7
- ports:
- - "3306:3306"
- env_file: env/db.env
- volumes:
- - dbdata:/var/lib/mysql
- elasticsearch:
- image: elasticsearch:5.6
- ports:
- - "9200:9200"
- - "9300:9300"
- volumes:
- appdata:
- dbdata:
|