The Development Environment with LEMP Stack
1.3K
The Dockerfile for development environment with LEMP Stack.
It is based on Alpine Linux and includes middleware of the following:
$ docker run -d \
--name mantle \
-p 80:80 \
-p 3306:3306 \
hivelocityinc/mantle
You can change the config of middleware when you set environment value of the following:
| ENV Key | Default Value | Description |
|---|---|---|
| NGINX_WORKER_PROCESSES | 1 | Ningx: worker processes |
| NGINX_SERVER_NAME | localhost | Ningx: server name |
| NGINX_DOCUMENT_ROOT | /usr/share/nginx/html | Nginx: document root path |
| MYSQL_ROOT_PASSWORD | root | MySQL: root user's password |
| MYSQL_DATABASE | mantle | MySQL: database name |
| MYSQL_USER | mantle | MySQL: database user |
| MYSQL_PASSWORD | mantle | MySQL: database password for $MYSQL_USER |
| MEMCACHED_MEMUSAGE | 64 | Memcached: memory usage size |
| MEMCACHED_MAXCONN | 1024 | Memcached: maximum number of concurrent connections |
Example
$ docker run -d \
--name exampleapp \
-p 80:80 \
-e WORKER_PROCESSES=4 \
-e SERVER_NAME='exampleapp.dev' \
-e DOCUMENT_ROOT='/var/www/html/exampleapp/public' \
-e MYSQL_ROOT_PASSWORD='secret_mysql_pass' \
-v `pwd`/src:/var/www/html/exampleapp \
hivelocityinc/mantle
Content type
Image
Digest
Size
78 MB
Last updated
over 9 years ago
docker pull hivelocityinc/mantle