Nginx-Server for HTML-DEV using JSON-Templateengine
138
Using Simple mgeoTemplateJsonengine for editing
in Startup-Process.
If any defined ENV are missing, containerstart will exiting!
< h1 >Hallo %%ENV_FIRSTNAME%%!< /h1 >
JSON: envreplace.json
[
{
'template':'/src/index.tpl.html',
'target':'/usr/share/nginx/html/index.html',
'set':[ "ENV_FIRSTNAME", "ENV_LASTNAME", "ENV_STREET", "ENV_PLACE" ]
},
{....}
]
docker-compose.yml
ngixweb:
image: dockermgeo/helloworld-nginx
ports:
- "3200:80"
environment:
- ENV_FIRSTNAME=Moby
- ENV_LASTNAME="Docker"
- ENV_STREET="Containerroad 1"
- ENV_PLACE="007 Cloud"
Content type
Image
Digest
Size
83 MB
Last updated
almost 9 years ago
docker pull dockermgeo/helloworld-nginx