-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
74 lines (70 loc) · 1.81 KB
/
docker-compose.yml
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
version: '2'
services:
appdata:
image: tianon/true
volumes:
- ./webroot:/var/www/html
# - ~/.composer:/var/www/.composer
# - ./html/app/code:/var/www/html/app/code
# - ./html/app/design:/var/www/html/app/design
mysql:
build: ./mysql
ports:
- "3306:3306"
volumes:
- ./mysql/data:/var/lib/mysql
- ./mysql/conf:/etc/mysql/conf.d
environment:
MYSQL_ROOT_PASSWORD: 123456
MYSQL_DATABASE: magento
MYSQL_USER: magento
MYSQL_PASSWORD: magento
app:
build:
context: ./apache-php
args:
DOMAIN_NAME: localhost
ports:
- "80:80"
- "443:443"
volumes_from:
- appdata
volumes:
- ./apache-php/logs:/var/log/apache2
links:
- mysql
environment:
DOMAIN_NAME: localhost
XDEBUG_CONFIG: remote_host=172.18.0.1
setup:
build:
context: ./apache-php
args:
DOMAIN_NAME: localhost
command: /usr/local/bin/mage-setup
links:
- mysql
volumes_from:
- appdata
environment:
DOMAIN_NAME: localhost
M2SETUP_DB_HOST: mysql
M2SETUP_DB_NAME: magento
M2SETUP_DB_USER: magento
M2SETUP_DB_PASSWORD: magento
M2SETUP_SECURE: 'false'
M2SETUP_BASE_URL: http://localhost/
M2SETUP_BASE_SECURE_URL: https://localhost/
M2SETUP_BACKEND_NAME: admin_test
M2SETUP_ADMIN_FIRSTNAME: Magento
M2SETUP_ADMIN_LASTNAME: User
M2SETUP_ADMIN_EMAIL: [email protected]
M2SETUP_ADMIN_USER: admin
M2SETUP_ADMIN_PASSWORD: admin123
M2SETUP_CURRENCY: USD
M2SETUP_LANG: en_US
M2SETUP_TIMEZONE: UTC
M2SETUP_VERSION: 2.1.5
M2SETUP_USE_SAMPLE_DATA: 'false'
M2SETUP_USE_ARCHIVE: 'true'
M2SETUP_USE_COMPOSER_ENTERPRISE: 'false'