-
-
Notifications
You must be signed in to change notification settings - Fork 436
/
docker-compose.yml
91 lines (83 loc) · 2.47 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
version: "3.7"
services:
php-fpm:
image: ghcr.io/colinmollenhour/docker-openmage:8.2-fpm
volumes:
- ../..:/var/www/html
environment:
- ENABLE_SENDMAIL=${ENABLE_SENDMAIL:-false}
- XDEBUG_CONFIG=${XDEBUG_CONFIG:-client_host=host.docker.internal mode=debug force_display_errors=1 start_with_request=yes}
- MAGE_IS_DEVELOPER_MODE=${MAGE_IS_DEVELOPER_MODE:-1}
- PM_MAX_CHILDREN=${PM_MAX_CHILDREN:-5}
- PM_START_SERVERS=${PM_START_SERVERS:-2}
- PM_MIN_SPARE_SERVERS=${PM_MIN_SPARE_SERVERS:-1}
- PM_MAX_SPARE_SERVERS=${PM_MAX_SPARE_SERVERS:-3}
links:
- mysql
frontend:
image: library/nginx:1.25
hostname: ${HOST_NAME:-openmage-7f000001.nip.io}
ports:
- "${HOST_PORT:-80}:80"
environment:
- NGINX_MAGE_RUN_CODE=default
- NGINX_MAGE_RUN_TYPE=store
links:
- php-fpm
volumes:
- ./nginx-frontend.conf:/etc/nginx/templates/default.conf.template:ro
- ../..:/var/www/html
- ../../pub:/pub
admin:
image: library/nginx:1.25
hostname: ${ADMIN_HOST_NAME:-openmage-admin-7f000001.nip.io}
ports:
- "${ADMIN_HOST_PORT:-81}:80"
links:
- php-fpm
volumes:
- ./nginx-admin.conf:/etc/nginx/templates/default.conf.template:ro
- ../..:/var/www/html
- ../../pub:/pub
cron:
image: ghcr.io/colinmollenhour/docker-openmage:8.2-cli
working_dir: /var/www/html
command: /run-cron.sh
volumes:
- ../..:/var/www/html
environment:
- ENABLE_CRON=true
links:
- mysql
cli:
image: ghcr.io/colinmollenhour/docker-openmage:8.2-cli
working_dir: /var/www/html
volumes:
- ../..:/var/www/html
environment:
- COMPOSER_HOME=${COMPOSER_HOME:-/var/www/html/var/.composer}
links:
- mysql
- "frontend:${HOST_NAME:-openmage-7f000001.nip.io}"
- "admin:${ADMIN_HOST_NAME:-openmage-admin-7f000001.nip.io}"
mysql:
image: mysql:8.0
ports:
- "${MYSQL_PORT:-3306}:3306"
command: --default-authentication-plugin=mysql_native_password
environment:
- MYSQL_ALLOW_EMPTY_PASSWORD=yes
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD:-}
- MYSQL_USER=${MYSQL_USER:-openmage}
- MYSQL_PASSWORD=${MYSQL_PASSWORD:-openmage}
- MYSQL_DATABASE=${MYSQL_DATABASE:-openmage}
volumes:
- mysql:/var/lib/mysql
redis:
image: redis:7-alpine
command: redis-server --appendonly yes --maxmemory 10m
volumes:
- redis:/data
volumes:
mysql:
redis: