Sign inSign up

akordy/nginx_php7_stack

By akordy

•Updated about 9 years ago

Included in single docker image: Nginx - PHP 7.0 - SQLite - Redis - NodeJS - Beanstalkd - Composer

Image
0

1.1K

akordy/nginx_php7_stack repository overview

⁠Full Stack Docker

Single docker image that has full web dev stack (MySql not included)

⁠What works

  • Nginx 1.10.0
  • PHP 7.0
  • SQLite
  • Redis
  • NodeJS
  • Beanstalkd
  • Composer

⁠Structure

  1. config - This where image configurations resides
  2. www - project files
  3. Dockerfile - docker image builder

⁠config

⁠nginx/sites/default

This will be /etc/nginx/sites-available/default, edit it for your website ngionx configurations.

⁠.bash_aliases

Makes shortcuts for Linux commands.

⁠startup.sh

Bash script that runs every time at container boot.

⁠How to use the container

⁠CLI (the other easy way)

if you have different/multiple nginx sites configurations, put them in a directory (ex config/nginx/sites)

  docker run -p 80:80  -v /path/to/config/nginx/sites/:/etc/nginx/sites-available -v /path/to/your/project:/var/www  -e USER_ID=$UID --link mysql:mysql akordy/nginx_php7_redis_node

if you have different supervisor configurations, put them in a directory (ex config/supervisor)

  docker run -p 80:80  -v /path/to/config/nginx/sites/:/etc/nginx/sites-available -v /path/to/your/project:/var/www -v /path/to/config/supervisor:/etc/supervisor/conf.d -e USER_ID=$UID --link mysql:mysql akordy/nginx_php7_redis_node

Tag summary

Content type

Image

Digest

Size

243 MB

Last updated

about 9 years ago

docker pull akordy/nginx_php7_stack