Docker app installer

install_workerman3524_base_docker.sh

A helper.sh-hosted script that creates the /data/workerman3.5.24 layout, writes a minimal Workerman application, builds a local PHP 7.2 CLI image with Workerman 3.5.24, and runs a restartable container.

One-liner

curl -fsSL helper.sh/install_workerman3524_base_docker.sh | sudo bash
wget -qO- helper.sh/install_workerman3524_base_docker.sh | sudo bash

Requirements

  • Linux host
  • Docker installed and running
  • root privileges or sudo
  • Port 2345 available
  • /data writable on the host

Best for

  • Bring up a simple Workerman 3.5.24 HTTP service quickly on a Docker-ready host
  • Keep Workerman application files and logs under /data/workerman3.5.24 on the host
  • Provide a reviewed bootstrap path for older event-driven PHP services that still depend on Workerman 3.x

Highlights

  • Creates /data/workerman3.5.24/app and logs automatically
  • Writes a minimal Workerman bootstrap and composer.json by default
  • Builds a local helper-workerman:3.5.24 image from php:7.2-cli
  • Starts a restartable container and exposes a simple HTTP endpoint for validation

Recommended procedure

  1. Confirm Docker is already installed and the host can expose port 2345.
  2. Run the helper.sh command with sudo or as root.
  3. Let the script prepare /data/workerman3.5.24, build the local image, and create the container.
  4. Edit the sample Workerman application under /data/workerman3.5.24/app and rebuild or replace it later when you move to a real service.

Safety notes

  • Workerman 3.x and PHP 7.2 are both legacy components. Use them only when application compatibility requires it.
  • Do not expose an event service built from legacy PHP directly to the public internet without traffic controls and review.
  • Back up /data/workerman3.5.24 before replacing or rebuilding a production container.

Scenario article

Deploy Workerman 3.5.24 in Docker with /data/workerman3.5.24 as the host mount

A practical guide to using install_workerman3524_base_docker.sh when Docker is already ready and you need a simple Workerman 3.5.24 runtime with host-mounted app files and logs.

Related topics

Docker base services for application hosts

Use helper.sh scripts to standardize containerized Nginx, MySQL, Redis, PHP, and Workerman services on long-lived hosts.

Open topic

Legacy runtime services on Docker

Maintain older application stacks such as PHP 7.2 and Workerman on Docker while keeping deployment steps standardized enough for handoff and recovery.

Open topic

Problem pages

How to run Workerman 3.5.24 in Docker

Build a stable Workerman 3.5.24 image with the old PHP 7.2 runtime, archived Debian sources, and foreground process management handled by Docker.

Open page