Public | Automated Build

Last pushed: 12 days ago
Short Description
Short description is empty for this repo.
Full Description

luzifer/dockerproxy Dockerfile

This repository contains Dockerfile of Luzifer/dockerproxy for Docker's automated build published to the public Docker Hub Registry.

Base Docker Image

Installation

  1. Install Docker.

  2. Download automated build from public Docker Hub Registry: docker pull luzifer/dockerproxy

Usage

At first write your configuration as documented in the dockerproxy readme. For this container pay attention to use addresses :80 and :443 or change the ports below. If you specify SSL certificates they should have absolute paths. In this example a useful path would be /etc/dockerproxy/ssl/yourcert.crt.

Create a Dockerfile similar to the following in your configuration folder:

FROM luzifer/dockerproxy

RUN mkdir -p /etc/dockerproxy
ADD . /etc/dockerproxy

EXPOSE 80
EXPOSE 443
CMD ["/go/bin/dockerproxy", "-configfile=/etc/dockerproxy/config.json"]

Then, execute the following to build the image:

docker build -t myuser/dockerproxy .

This will create an image named myuser/dockerproxy with your configuration ready to go.

To launch it, just type:

docker run -d -p 80:80 -p 443:443 myuser/dockerproxy

As an alternative you can use this docker container with a mountpoint for the configuration:

docker run -d -p 80:80 -p 443:443 -v /home/myuser/config:/etc/dockerproxy luzifer/dockerproxy

Easy!

Docker Pull Command
Owner
luzifer
Source Repository

Comments (0)