Sign inSign up

rexsoftware/nginx

By rexsoftware

•Updated over 5 years ago

Tiny nginx with php config

Image
0

100K+

rexsoftware/nginx repository overview

⁠Nginx

Small footprint nginx image with a default php config.

⁠Usage

⁠Environment Variables
SettingDefault
NGINX_SERVER_NAMEnginx
NGINX_ROOT/www
NGINX_ACCESS_LOGstdout
NGINX_ERROR_LOGstdout
NGINX_ERROR_LOG_LEVELerror
PHP_FPM_URI127.0.0.1:9000
⁠With docker compose...
services:
    # using defaults
    nginx:
        image: rexsoftware/nginx:latest
        ports:
            - 8080:80
        volumes:
            - my-app/public:/www

    # using environment variables
    nginx-custom:
        image: rexsoftware/nginx:latest
        environment:
            - NGINX_ROOT=/app/public
            - NGINX_SERVER_NAME="my-cool-app.io"
        ports:
            - 8080:80
        volumes:
            - my-app:/app   
⁠With docker...
docker pull rexsoftware/nginx:latest
docker run -v my-site:/www -p 8080:80 rexsoftware/nginx:latest
⁠With Custom Dockerfile...
FROM rexsoftware/nginx:latest

COPY site.conf /etc/nginx/conf.d/default.conf

CMD [ '/start/start.sh' ]

Tag summary

Content type

Image

Digest

Size

2.8 MB

Last updated

over 5 years ago

docker pull rexsoftware/nginx