This repository has been archived by the owner on Jul 25, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
/
docker-compose.yml
97 lines (90 loc) · 2.06 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
version: "2"
services:
varnish:
image: meanbee/magento2-varnish:latest
hostname: ${PROJECT_HOSTNAME}
ports:
- 80
environment:
VIRTUAL_HOST: ${PROJECT_HOSTNAME}
VIRTUAL_PORT: 80
HTTPS_METHOD: noredirect
CERT_NAME: ${PROJECT_CERT}
links:
- web
web:
image: meanbee/magento2-nginx:1.9
hostname: web.${PROJECT_HOSTNAME}
ports:
- 80
volumes_from:
- magento
links:
- fpm
fpm:
image: meanbee/magento2-php:7.0-fpm
hostname: fpm.${PROJECT_HOSTNAME}
ports:
- 9000
volumes_from:
- magento
environment:
ENABLE_SENDMAIL: "true"
PHP_ENABLE_XDEBUG:
links:
- db
cron:
image: meanbee/magento2-php:7.0-cli
hostname: cron.${PROJECT_HOSTNAME}
command: run-cron
volumes_from:
- magento
environment:
ENABLE_SENDMAIL: "true"
links:
- db
cli:
image: meanbee/magento2-php:7.0-cli
volumes_from:
- magento
environment:
COMPOSER_HOME: /root/.composer
COMPOSER_ALLOW_SUPERUSER: 1
M2SETUP_INSTALL_DB: "true"
M2SETUP_VERSION: 2.2.*
M2SETUP_USE_SAMPLE_DATA: "true"
M2SETUP_DB_HOST: db
M2SETUP_DB_NAME: magento2
M2SETUP_DB_USER: magento2
M2SETUP_DB_PASSWORD: magento2
M2SETUP_BASE_URL: https://${PROJECT_HOSTNAME}/
M2SETUP_BACKEND_FRONTNAME: admin
M2SETUP_ADMIN_FIRSTNAME: Admin
M2SETUP_ADMIN_LASTNAME: User
M2SETUP_ADMIN_EMAIL: [email protected]
M2SETUP_ADMIN_USER: admin
M2SETUP_ADMIN_PASSWORD: password123
links:
- db
db:
image: mariadb:10
ports:
- 3306
volumes:
- dbdata:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: magento2
MYSQL_USER: magento2
MYSQL_PASSWORD: magento2
MYSQL_DATABASE: magento2
TERM: dumb
magento:
image: meanbee/magento2-data:2.2-sample
volumes:
- .:${PROJECT_SRC_VOLUME}
environment:
SYNC_DESTINATION: ${PROJECT_SRC_VOLUME}/magento
privileged: true
volumes:
dbdata:
# Database tables