forked from IvanPletnyov/docker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
40 lines (40 loc) · 1.04 KB
/
docker-compose.yaml
File metadata and controls
40 lines (40 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
version: '3.3'
services:
magento2_nginx:
image: nginx
restart: always
ports:
- 80:80
depends_on:
- magento2_php
volumes:
- ./nginx/config/:/etc/nginx/conf.d
- ./nginx/log/:/var/log/nginx/
- ./project/:/var/www/magento2
networks:
magento2-network:
aliases:
- dev.m2test.com
magento2_php:
build: ./php
restart: always
environment:
XDEBUG_CONFIG: "remote_port=9001"
volumes:
- ./php/config/php.ini:/usr/local/etc/php/php.ini
- ./project/:/var/www/magento2
networks:
- magento2-network
magento2_mysql:
image: mysql:5.6
volumes:
- ./mysql/extracted/:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: root
networks:
magento2-network:
driver: bridge
ipam:
driver: default
config:
- subnet: 192.168.220.0/28