Sign inSign up

hivelocityinc/mantle

By hivelocityinc

•Updated over 9 years ago

The Development Environment with LEMP Stack

Image
0

1.3K

hivelocityinc/mantle repository overview

⁠WIP: Mantle

Travis

The Dockerfile for development environment with LEMP Stack.

⁠Includes

It is based on Alpine Linux and includes middleware of the following:

  • Supervisor : 3.2.0
  • Nginx : 1.10
  • PHP : 5.6
  • MySQL(MariaDB) : 10.1
  • Memcached : 1.4

⁠Usage

$ docker run -d \
  --name mantle \
  -p 80:80 \
  -p 3306:3306 \
  hivelocityinc/mantle

⁠Configuration

You can change the config of middleware when you set environment value of the following:

ENV KeyDefault ValueDescription
NGINX_WORKER_PROCESSES1Ningx: worker processes
NGINX_SERVER_NAMElocalhostNingx: server name
NGINX_DOCUMENT_ROOT/usr/share/nginx/htmlNginx: document root path
MYSQL_ROOT_PASSWORDrootMySQL: root user's password
MYSQL_DATABASEmantleMySQL: database name
MYSQL_USERmantleMySQL: database user
MYSQL_PASSWORDmantleMySQL: database password for $MYSQL_USER
MEMCACHED_MEMUSAGE64Memcached: memory usage size
MEMCACHED_MAXCONN1024Memcached: 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

Tag summary

Content type

Image

Digest

Size

78 MB

Last updated

over 9 years ago

docker pull hivelocityinc/mantle