Skip to content

davyin-co/docker-cloudrup-webserver

Repository files navigation

介绍

站群系统使用的webserver的docker镜像,基于ubuntu 20.04,安装配置了apache/php/ssh等。

docker-compose example for cloudrup webserver

version: '3'
services:
  web:
    image: davyinsa/cloudrup-webserver:7.3
    restart: always
    environment: 
      - DRUPAL_WEB_ROOT=docroot
      - PHP_MEM_LIMIT=512M
      - PHP_MAX_EXECUTION_TIME=60
      - PHP_UPLOAD_SIZE=64M
      - PHP_MAX_INPUT_VARS=2000
      - PHP_DISPLAY_ERRORS=Off
    volumes:
      - ./aegir:/var/aegir
      - /data/cloudrup/aegir/logs:/var/log/aegir
    ports:
      - "80:80"
      - "22:22"

docker-compose example for single webserver

version: '3'
services:
  web:
    image: davyinsa/cloudrup-webserver:7.3
    restart: always
    environment: 
      - DRUPAL_WEB_ROOT=docroot
      - PHP_MEM_LIMIT=512M
      - PHP_MAX_EXECUTION_TIME=60
      - PHP_UPLOAD_SIZE=64M
      - PHP_MAX_INPUT_VARS=2000
      - PHP_DISPLAY_ERRORS=On
    volumes:
      - ./drupal-code:/var/www/html
    ports:
      - "80:80"

环境变量支持

apache

see here

php

Name Desciption
DRUPAL_WEB_ROOT The drupal code web root, may be web/docroot
PHP_MEM_LIMIT The php memory limit in php.ini. default value is 128M.
PHP_MAX_EXECUTION_TIME php max_execution_time
PHP_UPLOAD_SIZE php post_max_size and upload_max_filesize
PHP_MAX_INPUT_VARS php max_input_vars
PHP_DISPLAY_ERRORS php display_errors and display_startup_errors