pomerium/docs/docs/quick-start
2020-08-06 15:28:51 -07:00
..
img v0.6.0 2020-01-24 16:09:47 -08:00
binary.md docs: fix links, fix upgrade guide (#1220) 2020-08-05 23:07:49 -07:00
from-source.md docs: fix links, fix upgrade guide (#1220) 2020-08-05 23:07:49 -07:00
helm.md docs: fix links, fix upgrade guide (#1220) 2020-08-05 23:07:49 -07:00
kubernetes.md docs: fix links, fix upgrade guide (#1220) 2020-08-05 23:07:49 -07:00
readme.md docs: fix links, fix upgrade guide (#1220) 2020-08-05 23:07:49 -07:00
synology.md Update synology.md (#1219) 2020-08-06 15:28:51 -07:00

title lang meta
Docker en-US
name content
keywords pomerium identity-access-proxy oidc docker reverse-proxy containers

Pomerium using Docker

In the following quick-start, we'll create a minimal but complete environment for running Pomerium with containers.

Prerequisites

Configure

Configuration file

Create a configuration file (e.g config.yaml) for defining Pomerium's configuration settings, routes, and access-policies. Consider the following example:

<<< @/examples/config/config.minimal.yaml

Ensure the docker-compose.yml contains the correct path to your config.yaml.

Autocert Docker-compose

Ensure you have set up the requisite DNS and port forwarding in TLS certificates

Download the following docker-compose.yml file and modify it to:

<<< @/examples/docker/autocert.docker-compose.yml

Please note that you should use a persistent volume to store certificate data, or you may exhaust your domain quota on Let's Encrypt.

Wildcard Docker-compose

Download the following docker-compose.yml file and modify it to:

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

Run

Finally, simply run docker compose.

docker-compose up

Docker will automatically download the required container images for Pomerium and httpbin. Then, Pomerium will run with the configuration details set in the previous steps.

You should now be able access to the routes (e.g. https://httpbin.corp.yourdomain.example) as specified in your policy file.

You can also navigate to the special pomerium endpoint httpbin.corp.yourdomain.example/.pomerium/ to see your current user details.

currently logged in user