-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose-database.yml
57 lines (53 loc) · 1.22 KB
/
docker-compose-database.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
version: '3.5'
services:
mariadb:
image: mariadb:latest
container_name: mariadb
restart: always
environment:
- MYSQL_RANDOM_ROOT_PASSWORD=yes
- MYSQL_USER=${MYSQL_USER}
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
- MYSQL_DATABASE=${MYSQL_DATABASE}
volumes:
- ./backup/mariadb:/var/lib/mysql
networks:
- database
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch-oss:6.5.0
container_name: elasticsearch
restart: always
environment:
- cluster.name=darklight-cluster
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
deploy:
resources:
limits:
memory: 1G
cap_add:
- IPC_LOCK
volumes:
- ./backup/elasticsearch:/usr/share/elasticsearch/data
networks:
- database
kibana:
image: docker.elastic.co/kibana/kibana-oss:6.5.0
container_name: kibana
environment:
- SERVER_NAME=darklight.kibana
- ELASTICSEARCH_URL=http://elasticsearch:9200
ports:
- 5601:5601
networks:
- database
networks:
database:
name: database