This repository has been archived by the owner on Jan 9, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
80 lines (75 loc) · 1.54 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
74
75
76
77
78
79
80
web:
image: meanbee/magento2-nginx:1.9
ports:
- 80
links:
- fpm
- db
volumes_from:
- appdata
env_file:
- current.env
environment:
- VIRTUAL_HOST=magento2-royalmail.docker
- VIRTUAL_PORT=80
- MAGENTO_RUN_MODE=developer
appdata:
image: tianon/true
volumes:
- ./magento:/var/www/magento
- ./:/src
- ~/.composer/cache:/root/.composer/cache
fpm:
image: meanbee/magento2-php:7.0-fpm
links:
- db
volumes_from:
- appdata
env_file:
- current.env
environment:
- PHP_MEMORY_LIMIT=2G
db:
image: mariadb:10.0
ports:
- 3306
volumes_from:
- dbdata
env_file:
- current.env
environment:
- MYSQL_ROOT_PASSWORD=magento2
- MYSQL_DATABASE=magento2
- MYSQL_USER=magento2
- MYSQL_PASSWORD=magento2
dbdata:
image: tianon/true
volumes:
- /var/lib/mysql
cli:
image: meanbee/magento2-php:7.0-cli
links:
- db
volumes:
- ./bin:/tools
- ./test-results:/mnt/test-results
volumes_from:
- appdata
env_file:
- composer.env
- current.env
environment:
- PHP_MEMORY_LIMIT=2G
- M2SETUP_DB_HOST=db
- M2SETUP_DB_NAME=magento2
- M2SETUP_DB_USER=magento2
- M2SETUP_DB_PASSWORD=magento2
- M2SETUP_BASE_URL=http://magento2-royalmail.docker/
- M2SETUP_ADMIN_FIRSTNAME=Admin
- M2SETUP_ADMIN_LASTNAME=User
- M2SETUP_ADMIN_USER=admin
- M2SETUP_ADMIN_PASSWORD=password1
- M2SETUP_BACKEND_FRONTNAME=admin
- M2SETUP_VERSION=2.1.5
- M2SETUP_USE_SAMPLE_DATA=true