Support environment variables in the config file
288
Wrapper for nginx official image
404 codeGZIPUTF-830 secsendfileENV var in config fileversion: '3'
services:
web:
image: jonkofee/nginx
working_dir: /code
ports:
- ${NGINX_SERVER_PORT}:80
volumes:
- ./:/code
- ./docker/nginx/conf:/etc/nginx/conf.d
environment:
- DOMAIN=test.local
- PORT=80
server {
server_name api.${DOMAIN};
listen ${POST}
location / {
root /code;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass php:9000;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root/index.php;
fastcgi_param PATH_INFO $fastcgi_path_info;
}
}
Content type
Image
Digest
Size
10.5 MB
Last updated
almost 7 years ago
docker pull jonkofee/nginx