Sign inSign up

inmean/webserver-alpine

By inmean

•Updated about 5 years ago

Image
0

1.1K

inmean/webserver-alpine repository overview

⁠Nginx + PHP 7 FPM Web Server on Alpine Linux

⁠Usage
sudo docker run -d --name=nginx -p 80 -v $PWD/html:/var/www/html -e db_name=database -e db_user=username -e db_pass=password inmean/webserver
⁠Environment Variable

The environment variable will generate into env.php file and copy into /var/www/html each time container restart

  • db_host
  • db_name
  • db_user
  • db_pass
  • memcache_host
  • memcache_user
⁠Fixed alpine error on openrc

Map volume for /sys/fs/cgroup

⁠Dockfiler
Extend use to create your own docker use following Dockerfile script to start services automatically
EXPOSE 80
CMD ["sh", "/var/www/start.sh"]
⁠How to display PHP Error?

Just include following PHP code

error_reporting(-1);
ini_set('display_errors', 'On');

Tag summary

Content type

Image

Digest

Size

29.9 MB

Last updated

about 5 years ago

docker pull inmean/webserver-alpine