Last active
May 15, 2018 01:19
-
-
Save moznion/9758a4483b5265555eb0b5d886e0592f to your computer and use it in GitHub Desktop.
docker-compose file for kibana with oauth2_proxy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2.1' | |
services: | |
kibana: | |
image: 'docker.elastic.co/kibana/kibana-oss:6.1.0' | |
elasticsearch: | |
image: 'docker.elastic.co/elasticsearch/elasticsearch-oss:6.1.0' | |
oauth2-proxy: | |
image: 'a5huynh/oauth2_proxy:2.2' | |
command: > | |
'--http-address=0.0.0.0:4180' | |
'--cookie-secure=true' | |
'--cookie-expire=24h' | |
'--cookie-httponly=true' | |
'--cookie-domain=kibana.example.com' | |
'--cookie-name=<cookie-name>' | |
'--cookie-secret=<cookie-secret>' | |
'--upstream=http://kibana:5601' | |
'--email-domain=<email-domain>' | |
'--client-id=<client-id>' | |
'--client-secret=<client-secret>' | |
nginx: | |
image: 'nginx:1.13.5' | |
links: | |
- 'kibana' | |
- 'oauth2-proxy' | |
volumes: | |
- './nginx.conf:/etc/nginx/nginx.conf' | |
command: 'nginx' | |
https-portal: | |
image: 'steveltn/https-portal:1' | |
ports: | |
- '80:80' | |
- '443:443' | |
links: | |
- 'nginx' | |
restart: 'always' | |
environment: | |
DOMAINS: 'kibana.example.com -> http://nginx' | |
STAGE: 'local' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment