-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
80 lines (79 loc) · 2.57 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
services:
web:
image: webdevops/php-apache-dev:8.3
ports:
- "8081:80"
volumes:
- ".:/app:cached"
- "${USER_HOME}/.composer:/home/application/.composer:cached"
- "${USER_HOME}/.ssh:/home/application/.ssh:cached"
restart: always
working_dir: /app
user: application
extra_hosts:
- "host.docker.internal:host-gateway"
- "demo.weeshop.org:host-gateway"
environment:
TZ: Asia/Shanghai
PHP_DATE_TIMEZONE: Asia/Shanghai
WEB_DOCUMENT_ROOT: /app/web
WEB_ALIAS_DOMAIN: demo.weeshop.org
PHP_MEMORY_LIMIT: 2G
php.max_input_vars: 10000
XDEBUG_DISCOVER_CLIENT_HOST: "true"
XDEBUG_CLIENT_HOST: host.docker.internal
XDEBUG_MODE: debug
XDEBUG_START_WITH_REQUEST: "yes"
# This line is necessary which support cli debug in remote host.
# "localhost" is the mapping server configuration name set in PhpStorm.
PHP_IDE_CONFIG: "serverName=localhost"
FPM_PM_MAX_CHILDREN: 500
FPM_PROCESS_MAX: 100
# opcached
# PHP_OPCACHE_MEMORY_CONSUMPTION: 256
# PHP_OPCACHE_MAX_ACCELERATED_FILES: 1000000
# PHP_OPCACHE_VALIDATE_TIMESTAMPS: 1
# PHP_OPCACHE_REVALIDATE_FREQ: 1
# PHP_OPCACHE_INTERNED_STRINGS_BUFFER: 16
# php.opcache.save_comments: 1
# php.opcache.max_wasted_percentage: 100
# php.opcache.enable_cli: 1
# php.opcache.file_cache: "/app/data/opcache"
# php.opcache.file_cache_only: 0
# php.opcache.enable: 1
# php8 JIT
# Setting jit_buffer_size too high wil make php crash.
# php.opcache.jit_buffer_size: 100M
# php.opcache.jit: 1255
db:
image: mysql:8
ports:
- "3367:3306"
volumes:
- "./data/mysql:/var/lib/mysql:delegated"
restart: always
environment:
TZ: Asia/Shanghai
MYSQL_ROOT_PASSWORD: 123
MYSQL_DATABASE: drupal
cli:
image: webdevops/php:8.3
volumes:
- ".:/app:cached"
- "${USER_HOME}/.composer:/home/application/.composer:cached"
- "${USER_HOME}/.ssh:/home/application/.ssh:cached"
restart: always
working_dir: /app
user: application
extra_hosts:
- "host.docker.internal:host-gateway"
- "demo.weeshop.org:host-gateway"
environment:
WEB_ALIAS_DOMAIN: demo.weeshop.org
TZ: Asia/Shanghai
PHP_DATE_TIMEZONE: Asia/Shanghai
WEB_DOCUMENT_ROOT: /app/web
PHP_MEMORY_LIMIT: 2G
# This line is necessary which support cli debug in remote host.
# "localhost" is the mapping server configuration name set in PhpStorm.
PHP_IDE_CONFIG: "serverName=localhost"