-
Notifications
You must be signed in to change notification settings - Fork 9
/
docker-compose.yml
49 lines (49 loc) · 1.32 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
services:
mariadb:
image: docker.io/bitnami/mariadb:10.6
environment:
# ALLOW_EMPTY_PASSWORD is recommended only for development.
- ALLOW_EMPTY_PASSWORD=yes
- MARIADB_USER=bn_magento
- MARIADB_DATABASE=bitnami_magento
volumes:
- "mariadb_data:/bitnami/mariadb"
ports:
- "${MAGENTO_MYSQL_PORT}:3306"
env_file:
- path: ./.env.sample
required: true
- path: ./.env
required: false
magento:
container_name: ${COMPOSE_PROJECT_NAME:-sequra}-magento
image: docker.io/bitnami/magento:${MAGENTO_VERSION:-latest}
ports:
- "${MAGENTO_HTTP_PORT}:8080"
- "${MAGENTO_HTTPS_PORT}:8443"
env_file:
- path: ./.env.sample
required: true
- path: ./.env
required: false
volumes:
- "magento_data:/bitnami/magento"
- "./docker-entrypoint-init.d:/docker-entrypoint-init.d"
- ".composer_cache:${COMPOSER_CACHE_DIR}"
- "./:/Sequra/Core"
extra_hosts:
- "localhost.sequrapi.com:host-gateway"
depends_on:
- mariadb
- elasticsearch
elasticsearch:
image: docker.io/bitnami/elasticsearch:7
volumes:
- "elasticsearch_data:/bitnami/elasticsearch/data"
volumes:
mariadb_data:
driver: local
magento_data:
driver: local
elasticsearch_data:
driver: local