Skip to content

ajbisoft/docker_image-debian_lapp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Docker image: debian9_lapp

Description

Official Debian 9 (debian:9) + apache2 + php7.2 + postgresql-client docker image with some customization:

  • version debian9_lapp:with_wkhtmltopdf also has stable wkhtmltopdf package (0.12.4) from http://wkhtmltopdf.org installed
  • mod_rewrite apache2 module enabled
  • DocumentRoot set to /var/www/public
  • /etc/apt/sources.list modified to include stretch-updates and to use Ondřej Surý PHP 7.2 packages
  • WORKDIR set to /var/www/
  • ENTRYPOINT set to autostart apache2 service

Usage

There are two main run-time settings that may need to be passed to newly created container from this image:

  • Container provides HTTP service on port 80. If you want this port to be published on host interfaces add -p 80:80 to your docker run statement
  • There is no VOLUME statement in Dockerfile, so data volume must be attached when starting container by adding -v <path_to_your_datadir>:/var/www/ to your docker run statement

Example

To successfully start a new container using this image please specify port (here port 80) and volume options as in following example: docker run -dp 80:80 -v <path_to_your_datadir>:/var/www/ --name <your-app-name> ajbisoft/debian9-lapp

Summary

This docker image is best suited for PHP applications that depend on PostgreSQL database backend. It works well not only with simple PHP websites, but also with ie. Laravel framework (just mount your project under /var/www).

Should you need to use a different database backend (like MySQL) with your project, please see my other docker images!

About

Debian(8 & 9)+apache2+php(5 for debian8 & 7.1 for debian9)+postgresql-client docker image with some customization

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published