-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.template
More file actions
36 lines (34 loc) · 875 Bytes
/
Copy pathdocker-compose.template
File metadata and controls
36 lines (34 loc) · 875 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
version: '2.1'
services:
mariadb:
image: 'mariadb:latest'
environment:
- MYSQL_ROOT_PASSWORD=password
- MYSQL_DATABASE=magento
healthcheck:
test: "/usr/bin/mysql --user=root --password=password --execute \\"SHOW DATABASES;\\""
timeout: 5s
retries: 20
volumes:
- 'magento_database:/var/lib/mysql'
magento:
image: 'jamesbrink/magento:%s'
environment:
- MARIADB_HOST=mariadb
- MARIADB_PORT_NUMBER=3306
- MAGENTO_DATABASE_USER=root
- MAGENTO_DATABASE_PASSWORD=password
- MAGENTO_DATABASE_NAME=magento
- MAGENTO_ADMINURI=admin
- MAGENTO_HOST=localhost
- ENABLE_SAMPLE_DATA=true
- APACHE_LOG_LEVEL=warn
ports:
- '80:80'
- '443:443'
depends_on:
mariadb:
condition: service_healthy
volumes:
magento_database:
driver: local