Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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