pomerium/docs/guide
2019-04-27 20:21:43 -07:00
..
synology docs: add synology tutorial (#79) 2019-04-06 23:35:20 -07:00
from-source.md docs: add certificate section (#96) 2019-04-27 20:21:43 -07:00
get-started.gif update reamde and docs 2019-01-04 21:24:07 -08:00
helm.md docs: add certificate section (#96) 2019-04-27 20:21:43 -07:00
kubernetes-gke.png docs: add kubernetes (#33) 2019-01-27 22:22:14 -08:00
kubernetes.md docs: add certificate section (#96) 2019-04-27 20:21:43 -07:00
readme.md docs: add certificate section (#96) 2019-04-27 20:21:43 -07:00
synology.md docs: add certificate section (#96) 2019-04-27 20:21:43 -07:00

Docker

Docker and docker-compose are tools for defining and running multi-container Docker applications. We've created an example docker-compose file that creates a minimal, but complete test environment for pomerium.

Prerequisites

Download

Copy and paste the contents of the provided example basic.docker-compose.yml.

Configure

Docker-compose

Edit the docker-compose.yml to match your specific identity provider's settings. For example, basic.docker-compose.yml:

<<< @/docs/docs/examples/docker/basic.docker-compose.yml

Policy configuration

Next, create a policy configuration file which will contain the routes you want to proxy, and their desired access-controls. For example, policy.example.yaml:

<<< @/policy.example.yaml

Certificates

Place your domain's wild-card TLS certificate next to the compose file. If you don't have one handy, the included script generates one from LetsEncrypt.

Run

Docker-compose will automatically download the latest pomerium release as well as two example containers.

docker-compose up

Pomerium is configured to delegate access to two test apps helloworld and httpbin.

Navigate

Open a browser and navigate to hello.your.domain.com or httpbin.your.domain.com. You should see something like the following in your browser.

Getting started

And in your terminal.

asciicast