mirror of https://github.com/usbharu/Hideout.git
60 lines
1.3 KiB
YAML
60 lines
1.3 KiB
YAML
version: "3"
|
|
|
|
services:
|
|
db:
|
|
image: postgres:16
|
|
ports:
|
|
- "5432:5432"
|
|
environment:
|
|
POSTGRES_USER: "postgres"
|
|
POSTGRES_PASSWORD: "password"
|
|
POSTGRES_DB: "hideout"
|
|
|
|
mongodb:
|
|
image: mongo:7.0.14
|
|
ports:
|
|
- "27017:27017"
|
|
|
|
elasticsearch:
|
|
image: docker.elastic.co/elasticsearch/elasticsearch:7.17.24
|
|
container_name: elasticsearch
|
|
environment:
|
|
- discovery.type=single-node
|
|
- cluster.name=docker-cluster
|
|
- bootstrap.memory_lock=true
|
|
- xpack.security.enabled=true
|
|
- xpack.monitoring.collection.enabled=true
|
|
- ELASTIC_PASSWORD=Passw0rd
|
|
- "ES_JAVA_OPTS=-Xms512M -Xmx512M"
|
|
ports:
|
|
- "9200:9200"
|
|
volumes:
|
|
- elasticsearch-data:/usr/share/elasticsearch/data
|
|
restart: always
|
|
kibana:
|
|
image: docker.elastic.co/kibana/kibana:7.17.24
|
|
container_name: kibana
|
|
ports:
|
|
- "5601:5601"
|
|
environment:
|
|
- ELASTICSEARCH_URL=http://elasticsearch:9200
|
|
- ELASTICSEARCH_USERNAME=elastic
|
|
- ELASTICSEARCH_PASSWORD=Passw0rd
|
|
depends_on:
|
|
- elasticsearch
|
|
restart: always
|
|
|
|
fluentd:
|
|
build: ./fluentd
|
|
volumes:
|
|
- ./fluentd/conf:/fluentd/etc
|
|
- ../logs:/in
|
|
depends_on:
|
|
- "elasticsearch"
|
|
ports:
|
|
- "24224:24224"
|
|
- "24224:24224/udp"
|
|
|
|
volumes:
|
|
elasticsearch-data:
|
|
driver: local |