forked from tatumsu/docker-magento
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
50 lines (41 loc) · 799 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
50 lines (41 loc) · 799 Bytes
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
41
42
43
44
45
46
47
48
49
version: '2'
services:
mysql:
build: ./mysql
image: mysql
ports:
- "3306:3306"
environment:
- MYSQL_ROOT_PASSWORD=123qwe
- MYSQL_DATABASE=magento
- MYSQL_USER=andrey
- MYSQL_PASSWORD=123qwe
network_mode: "host"
php:
build: ./php
image: php
ports:
- "9000:9000"
volumes:
- ./magento:/usr/share/nginx/html
network_mode: "host"
nginx:
build: ./nginx
image: nginx
ports:
- "8080:80"
volumes:
- ./magento:/usr/share/nginx/html
network_mode: "host"
#networks:
# magento_net:
# driver: bridge
# ipam:
# config:
# - subnet: 192.168.0.0/16
# ip_range: 192.168.2.0/24
# gateway: 192.168.2.254
# aux_addresses:
# mysql: 192.168.2.5
# nginx: 192.168.2.6
# php: 192.168.2.7