-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yml
63 lines (61 loc) · 3.72 KB
/
docker-compose.dev.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
# Copyright(c) 2021 aasaam software development group
version: "3"
services:
php-docker-image:
container_name: php-docker-image
build: .
working_dir: /app
volumes:
- ./app:/app
environment:
ASM_PUBLIC_APP_TEST: "true"
CONFIGURE_PHP_INI_FILE_UPLOADS: "${CONFIGURE_PHP_INI_FILE_UPLOADS:-0}"
CONFIGURE_PHP_INI_SESSION_NAME: "${CONFIGURE_PHP_INI_SESSION_NAME:-app_sid}"
CONFIGURE_PHP_INI_POST_MAX_SIZE: "${CONFIGURE_PHP_INI_POST_MAX_SIZE:-6m}"
CONFIGURE_PHP_INI_UPLOAD_MAX_FILESIZE: "${CONFIGURE_PHP_INI_UPLOAD_MAX_FILESIZE:-4m}"
CONFIGURE_PHP_INI_OPCACHE_INTERNED_STRINGS_BUFFER: "${CONFIGURE_PHP_INI_OPCACHE_INTERNED_STRINGS_BUFFER:-8}"
CONFIGURE_PHP_INI_OPCACHE_MAX_ACCELERATED_FILES: "${CONFIGURE_PHP_INI_OPCACHE_MAX_ACCELERATED_FILES:-10000}"
CONFIGURE_PHP_INI_OPCACHE_MEMORY_CONSUMPTION: "${CONFIGURE_PHP_INI_OPCACHE_MEMORY_CONSUMPTION:-128}"
CONFIGURE_PHP_INI_OPCACHE_REVALIDATE_FREQ: "${CONFIGURE_PHP_INI_OPCACHE_REVALIDATE_FREQ:-0}"
CONFIGURE_PHP_INI_OPCACHE_VALIDATE_TIMESTAMPS: "${CONFIGURE_PHP_INI_OPCACHE_VALIDATE_TIMESTAMPS:-1}"
CONFIGURE_PHP_INI_OPCACHE_MAX_WASTED_PERCENTAGE: "${CONFIGURE_PHP_INI_OPCACHE_MAX_WASTED_PERCENTAGE:-15}"
CONFIGURE_PHP_INI_MAX_EXECUTION_TIME: "${CONFIGURE_PHP_INI_MAX_EXECUTION_TIME:-10}"
CONFIGURE_PHP_INI_MAX_FILE_UPLOADS: "${CONFIGURE_PHP_INI_MAX_FILE_UPLOADS:-1}"
CONFIGURE_PHP_FPM_MAX_CHILDREN: "${CONFIGURE_PHP_FPM_MAX_CHILDREN:-5}"
CONFIGURE_PHP_FPM_START_SERVERS: "${CONFIGURE_PHP_FPM_START_SERVERS:-2}"
CONFIGURE_PHP_FPM_MIN_SPARE_SERVERS: "${CONFIGURE_PHP_FPM_MIN_SPARE_SERVERS:-1}"
CONFIGURE_PHP_FPM_MAX_SPARE_SERVERS: "${CONFIGURE_PHP_FPM_MAX_SPARE_SERVERS:-3}"
php-docker-image-nginx:
container_name: php-docker-image-nginx
depends_on:
- php-docker-image
image: nginx:1
working_dir: /app
ports:
- 19000:80
environment:
# private
CONFIGURE_NGINX_PHP_CONTAINER_NAME: ${CONFIGURE_NGINX_PHP_CONTAINER_NAME:-php-docker-image}
CONFIGURE_NGINX_WORKER_PROCESSES: ${CONFIGURE_NGINX_WORKER_PROCESSES:-2}
CONFIGURE_NGINX_WORKER_RLIMIT_NOFILE: ${CONFIGURE_NGINX_WORKER_RLIMIT_NOFILE:-1024}
CONFIGURE_NGINX_WORKER_CONNECTIONS: ${CONFIGURE_NGINX_WORKER_CONNECTIONS:-512}
CONFIGURE_NGINX_ERROR_LOG_LEVEL: ${CONFIGURE_NGINX_ERROR_LOG_LEVEL:-debug}
CONFIGURE_NGINX_CLIENT_BODY_TIMEOUT: ${CONFIGURE_NGINX_CLIENT_BODY_TIMEOUT:-10}
CONFIGURE_NGINX_CLIENT_MAX_BODY_SIZE: ${CONFIGURE_NGINX_CLIENT_MAX_BODY_SIZE:-2m}
CONFIGURE_NGINX_DIRECTIO: ${CONFIGURE_NGINX_DIRECTIO:-2m}
CONFIGURE_NGINX_KEEPALIVE_REQUESTS: ${CONFIGURE_NGINX_KEEPALIVE_REQUESTS:-128}
CONFIGURE_NGINX_KEEPALIVE_TIMEOUT: ${CONFIGURE_NGINX_KEEPALIVE_TIMEOUT:-600}
CONFIGURE_NGINX_SENDFILE_MAX_CHUNK: ${CONFIGURE_NGINX_SENDFILE_MAX_CHUNK:-1m}
CONFIGURE_NGINX_SEND_TIMEOUT: ${CONFIGURE_NGINX_SEND_TIMEOUT:-5}
CONFIGURE_NGINX_MAP_HASH_BUCKET_SIZE: ${CONFIGURE_NGINX_MAP_HASH_BUCKET_SIZE:-128}
CONFIGURE_NGINX_ACCESS_LOG: ${CONFIGURE_NGINX_ACCESS_LOG:-/dev/stdout}
CONFIGURE_NGINX_ERROR_LOG: ${CONFIGURE_NGINX_ERROR_LOG:-/dev/stdout}
CONFIGURE_NGINX_FASTCGI_BUFFER_SIZE: ${CONFIGURE_NGINX_FASTCGI_BUFFER_SIZE:-128k}
CONFIGURE_NGINX_FASTCGI_BUFFERS_NUMBER: ${CONFIGURE_NGINX_FASTCGI_BUFFERS_NUMBER:-4}
CONFIGURE_NGINX_FASTCGI_BUFFERS_SIZE: ${CONFIGURE_NGINX_FASTCGI_BUFFERS_SIZE:-256k}
CONFIGURE_NGINX_FASTCGI_BUSY_BUFFERS_SIZE: ${CONFIGURE_NGINX_FASTCGI_BUSY_BUFFERS_SIZE:-256k}
volumes:
- ./app/public:/app/public:ro
- ./config/nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- ./config/nginx/mime.types:/etc/nginx/mime.types:ro
- ./config/nginx/default.conf:/etc/nginx/templates/default.conf.template:ro