PHP 5.4, 5.5, 5.6 images based on Debian
Last few weeks we performed many changes to this image. We believe, usage will be stable in future now.
Image includes:
This is complex image developed for Roští.cz service. We try to have simple environment for our users and right now, we think combination of technologies in one container is better for us, because users can affect complete environment.
All user's data are manage in /srv directory. The best option is mount volume with your app to container's /srv. It need's to have this directory structure:
All data are under user 1000 and group 1000. We need this for synchronization between server. It means apache runs under 1000:1000 user/group.
Image runs apache under supervisor. PHP is hooked to Apache through mod_php. Apache listen on port 8000. You can run your new site by this command:
docker run -d -p 10000:8000 -v /my/site/:/srv/ --name=phpapp rosti/php:5.6.7
I think the best way to run this image is this:
docker run -d -p 127.0.0.1:10000:8000 -v /my/site/:/srv/ --name=phpapp rosti/php:5.6.7
At the end, don't forget configure your nginx on host system:
server {
listen *:80;
server_name hostmag.cz www.hostmag.cz;
location / {
proxy_pass http://127.0.0.1:10000/;
proxy_redirect default;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
}
}
SSH server is accessible on port 22.
Content type
Image
Digest
sha256:03a3fc198…
Size
137.6 MB
Last updated
almost 11 years ago
docker pull rosti/php