appstore-1panel/apps/php7/7.1.33/build/docker-compose.yml

22 lines
612 B
YAML
Raw Normal View History

2023-07-13 15:34:02 +08:00
version: '3'
2023-04-09 10:55:06 +08:00
services:
1panel-php:
build:
context: ./php
args:
PHP_IMAGE: php:${PHP_VERSION}-fpm-alpine
CONTAINER_PACKAGE_URL: ${CONTAINER_PACKAGE_URL}
PHP_EXTENSIONS: ${PHP_EXTENSIONS}
TZ: ${TZ}
INSTALL_SUPERVISOR: ${INSTALL_SUPERVISOR}
2023-04-09 10:55:06 +08:00
image: ${IMAGE_NAME}
volumes:
- ${SOURCE_DIR}:/www/
- ${PHP_PHP_CONF_FILE}:/usr/local/etc/php/php.ini
- ${PHP_FPM_CONF_FILE}:/usr/local/etc/php-fpm.d/www.conf
- ${PHP_LOG_DIR}:/var/log/php
- ${DATA_DIR}/composer:/tmp/composer
restart: always
cap_add:
- SYS_PTRACE