Skip to content

Latest commit

 

History

History
 
 

vector

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

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.