Skip to content
This repository was archived by the owner on Dec 16, 2019. It is now read-only.

neilpang/php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 

Repository files navigation

php

php with apache, and mysql connector

http server:

docker run --rm -itd  \
  -v /data/web/example.com/:/var/www/html/ \
  --name web \
  -p 80:80 \
  neilpang/php:5

custom conf:

docker run --rm -itd  \
  -v /data/web/example.com/:/var/www/html/ \
  -v /data/conf/:/conf/
  --name web \
  -p 80:80 \
  neilpang/php:5

https server with letsencrypt:

docker run --rm -itd  \
  -v /data/web/example.com/:/var/www/html/ \
  --name web \
  -p 80:80 \
  -p 443:443 \
  -e SSL_HOST_NAMES=example.com,www.example.com \
  neilpang/php:5

https server with custom cert and key:

docker run --rm -itd  \
  -v /data/web/example.com/:/var/www/html/ \
  --name web \
  -p 80:80 \
  -p 443:443 \
-v ./ssl/chain.pem:/etc/ssl/certs/ssl-cert-snakeoil.pem \
-v ./ssl/key.pem:/etc/ssl/private/ssl-cert-snakeoil.key \
  neilpang/php:5

About

my php with apache docker image

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published