-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
83 lines (78 loc) · 1.78 KB
/
docker-compose.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
services:
audit-logger:
container_name: audit-logger
build:
context: .
dockerfile: docker/audit-logger/Dockerfile
env_file:
- .env
restart: unless-stopped
volumes:
- ./:/app
depends_on:
- elasticsearch
- kibana
ports:
- "8000:8000"
networks:
- audit_logger
elasticsearch:
container_name: elasticsearch
image: arm64v8/elasticsearch:7.17.19
env_file:
- .env
environment:
- discovery.type=single-node
- ingest.geoip.downloader.enabled=false
- path.repo=/usr/share/elasticsearch/repository
- repositories.fs.location=/usr/share/elasticsearch/repository
ulimits:
memlock:
soft: -1
hard: -1
restart: unless-stopped
volumes:
- sa_elasticsearch_data:/usr/share/elasticsearch/data
ports:
- "9200:9200"
- "9300:9300"
networks:
- audit_logger
kibana:
container_name: kibana
build:
context: ./docker/kibana
dockerfile: Dockerfile
args:
KIBANA_VERSION: 7.17.19
env_file:
- .env
environment:
- elasticsearch.hosts=elasticsearch:9200
restart: unless-stopped
volumes:
- sa_kibana_data:/usr/share/kibana/data
- ./docker/kibana/kibana.yml:/usr/share/kibana/config/kibana.yml
ports:
- "5601:5601"
networks:
- audit_logger
depends_on:
- elasticsearch
backup:
container_name: backup
image: busybox
volumes:
- sa_elasticsearch_data:/usr/share/elasticsearch/data
- sa_kibana_data:/usr/share/kibana/data
- ./backup:/backup
command: sh ./backup/volume_backups.sh
restart: no
profiles:
- backup
volumes:
sa_elasticsearch_data:
sa_kibana_data:
networks:
audit_logger:
driver: bridge