Public | Automated Build

Last pushed: 2 years ago
Short Description
Nginx php-fpm box
Full Description

Alpine Linux Php Stack Docker image

Docker run Php Stack in only 87MB!

Usage

Build:

docker build -t phuong/phpbox .

Run:

docker run -d -p :80 --name=phpservice \
    -v /srv/tts/services/user:/var/www \
    phuong/phpbox

Dynamic dotenv config

If you use dotenv config file and subscribe it to Rabbitmq, this image support auto load new config when it changed.

Example

docker run -d -p :80 --name=phpservice \
    -v /srv/tts/services/user:/var/www \
    -e AMQP_HOST=localhost \
    -e AMQP_USER=guest \
    -e AMQP_PASS=guest \
    -e AMQP_PORT=5672 \
    -e 'AMQP_VHOST=/' \
    -e AMQP_EXCHANGE=config_env_product \
    -e 'ENV_PATH=/var/www/.env' \
    phuong/phpbox

Crontabs in /var/www/crontabs with structure:

minute hour day_of_month month day_of_week command

Supervisor configs auto load from /var/www/supervisor.d

Docker Pull Command
Owner
phuongh
Source Repository