Last active
May 20, 2019 15:17
-
-
Save niquola/463561e25ea0b6a5c12cd0407a0fd7bf to your computer and use it in GitHub Desktop.
Docker compose with ES/Kibana
This file contains 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: '3.1' | |
services: | |
devbox: | |
image: "healthsamurai/devbox:latest" | |
depends_on: | |
- "devbox-db" | |
links: | |
- "devbox-db:database" | |
ports: | |
- "8888:8888" | |
volumes: | |
- "./logs:/logs" | |
environment: | |
PGHOST: "database" | |
PGUSER: "postgres" | |
PGPORT: "5432" | |
PGPASSWORD: "postgres" | |
PGDATABASE: "devbox" | |
AIDBOX_LICENSE_ID: <YOUR_LICENSE_ID> | |
AIDBOX_LICENSE_KEY: <YOUR_LICENSE_KEY> | |
AIDBOX_CLIENT_ID: root | |
AIDBOX_CLIENT_SECRET: root | |
AIDBOX_ADMIN_ID: admin | |
AIDBOX_ADMIN_PASSWORD: admin | |
AIDBOX_PORT: 8888 | |
AIDBOX_FHIR_VERSION: 4.0.0 | |
AIDBOX_LOGS: '/logs/devbox' | |
devbox-db: | |
image: aidbox/db:11.1.0 | |
volumes: | |
- "./pgdata:/data" | |
environment: | |
POSTGRES_USER: "postgres" | |
POSTGRES_PORT: "5432" | |
POSTGRES_PASSWORD: "postgres" | |
POSTGRES_DB: "devbox" | |
POSTGRES_DATABASE: "devbox" | |
logexp: | |
links: | |
- "elasticsearch:elasticsearch" | |
image: 'aidbox/aidbox-cli:0.0.1-alpha' | |
command: ["/aidbox", "es", "logs", "-l", "http://elasticsearch:9200/logs/logs", "-f", "/logs/devbox"] | |
volumes: | |
- "./logs:/logs" | |
elasticsearch: | |
image: docker.elastic.co/elasticsearch/elasticsearch:7.0.0 | |
volumes: | |
- ./esdata:/usr/share/elasticsearch/data | |
environment: | |
- cluster.name=aidbox-cluster | |
- bootstrap.memory_lock=true | |
- "ES_JAVA_OPTS=-Xms512m -Xmx512m" | |
- discovery.type=single-node | |
ulimits: | |
memlock: | |
soft: -1 | |
hard: -1 | |
ports: | |
- "9200:9200" | |
kibana: | |
links: | |
- "elasticsearch:elasticsearch" | |
image: docker.elastic.co/kibana/kibana:7.0.0 | |
ports: | |
- "5601:5601" | |
environment: | |
ELASTICSEARCH_HOSTS: http://elasticsearch:9200 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment