fajarhide / pipeline-k8s

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Alpine microcontainer with Nginx

This is a micro docker container based on Alpine 3.3 and Nginx

Examples

This images are build on nimmis/alpine-micro which are a modified version of Alpine with a working init process, and a working cron, logrotate and syslog. Services are started with runit daemon, for more information about that see nimmis/alpine-mico

starting the container as a daemon

docker run -d --name nginx nimmis/alpine-nginx

This will start the container with nginx process runnung, access the container with

docker exec -ti nginx /bin/sh

Static web folder

The images exposes a volume at /web. The structure below /web is

Directory Function
html web root
cgi-bin cgi bin folder
config apache config directory
logs nginx log directory

To use this start the container with

docker run -d --name nginx -v /path/to/web:/web nimmis/alpine-nginx

if the folders are missing they will be created

Accessing apache from outside the container

To access the webserver from external you use the -P command where the syntax is

-P <external port on host>:<local port in container>

so to access the apache server on port 8080 you should use the command

docker run -d --name nginx -p 8080:80  nimmis/alpine-nginx

About


Languages

Language:Shell 79.0%Language:Dockerfile 21.0%