-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml
52 lines (47 loc) · 1.05 KB
/
docker-compose.yaml
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
version: '3'
services:
mariadb:
image: mariadb:10.4
restart: always
container_name: magento-mariadb
ports:
- "3306:3306"
volumes:
- ./mariadb-data:/var/lib/mysql
environment:
MARIADB_ROOT_PASSWORD: supersecretpassword
MARIADB_USER: magento
MARIADB_PASSWORD: secretpassword
MARIADB_DATABASE: magento
# Elastic Search required by Magento 2.4
elasticsearch:
image: elasticsearch:7.10.1
container_name: magento-elasticsearch
ports:
- "9200:9200"
- "9300:9300"
environment:
discovery.type: single-node
nginx:
build:
context: ./nginx
dockerfile: nginx.dockerfile
restart: always
container_name: magento-nginx
ports:
- "8080:80"
volumes:
- ./magento:/workspaces/magento
depends_on:
- mariadb
- php
php:
container_name: magento-php
build:
context: ./php
dockerfile: php.dockerfile
restart: always
volumes:
- ./magento:/workspaces/magento
volumes:
magento-mariadb-data: