Skip to content

Instantly share code, notes, and snippets.

@moznion
Last active May 15, 2018 01:19
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save moznion/9758a4483b5265555eb0b5d886e0592f to your computer and use it in GitHub Desktop.
Save moznion/9758a4483b5265555eb0b5d886e0592f to your computer and use it in GitHub Desktop.
docker-compose file for kibana with oauth2_proxy
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