Add example compose file
This commit is contained in:
parent
ac5cf66de6
commit
f83b9ae696
1 changed files with 30 additions and 0 deletions
30
docker-compose.yml.example
Normal file
30
docker-compose.yml.example
Normal file
|
@ -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
|
Loading…
Reference in a new issue