Skip to content

Latest commit

 

History

History
40 lines (30 loc) · 1.19 KB

README.md

File metadata and controls

40 lines (30 loc) · 1.19 KB

vector

Usage

This container is intended to be used as a data volume container and mounted from a nginx container.

  • Build image: docker build -t vector .

  • Create data volume container:

    docker create --name vector --volume /usr/local/vector vector /bin/true
    
  • Pull nginx image: docker pull nginx

  • Create nginx configuration file, nginx.conf:

    http {
        server {
            location /vector {
                alias /usr/local/vector;
            }
            ...
        }
        ...
    }
    ...
    
  • Start nginx container:

    docker run --name nginx \
        --volumes-from vector \
        --volume /some/nginx.conf:/etc/nginx/nginx.conf:ro \
        nginx
    

Other HTTP servers could be used as well.