From f83b9ae696de67d9e47ab1c5a7b3351c98f05b25 Mon Sep 17 00:00:00 2001 From: Paul Date: Sun, 22 Apr 2018 19:45:36 +0200 Subject: [PATCH] Add example compose file --- docker-compose.yml.example | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 docker-compose.yml.example diff --git a/docker-compose.yml.example b/docker-compose.yml.example new file mode 100644 index 0000000..36361bf --- /dev/null +++ b/docker-compose.yml.example @@ -0,0 +1,30 @@ +version: '2' + +networks: + web: + external: + name: reverseproxy_web + +services: + web: + image: docker.klink.asia/paul/certman:latest + environment: + - "OAUTH2_CLIENT_ID=setme" + - "OAUTH2_CLIENT_SECRET=setme" + - "OAUTH2_TOKEN_URL=https://git.example.com/oauth/token" + - "OAUTH2_AUTH_URL=https://git.example.com/oauth/authorize" + - "OAUTH2_REDIRECT_URL=https://vpn.example.com/login/oauth2/redirect" + - "USER_ENDPOINT=https://git.example.com/api/v4/user" + - "APP_KEY=setme_32chars" + - "APP_LISTEN=:8000" + volumes: + - ./ca.crt:/ca.crt:ro + - ./ca.key:/ca.key:ro + - ./clients.json:/clients.json:rw + labels: + - "traefik.enable=true" + - "traefik.frontend.rule=Host: vpn.example.com" + - "traefik.docker.network=reverseproxy_web" + - "traefik.port=8000" + networks: + - web