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
The environment variable will generate into env.php file and copy into /var/www/html each time container restart
Map volume for /sys/fs/cgroup
EXPOSE 80
CMD ["sh", "/var/www/start.sh"]
Just include following PHP code
error_reporting(-1);
ini_set('display_errors', 'On');
Content type
Image
Digest
Size
29.9 MB
Last updated
about 5 years ago
docker pull inmean/webserver-alpine