This repository has been archived by the owner on Oct 21, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
71 lines (66 loc) · 1.67 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
version: '3.8'
services:
app:
build:
context: .
dockerfile: Dockerfile
args:
- release_version=docker-compose
image: recordingbot
ports:
- 8080:8080
- 8081:8081
environment:
# put here the token used for testing
- SERVICE_TOKEN=some-service-token-from-BE
# - WIRE_API_HOST=
- PUBLIC_URL=http://localhost:8080
# local database
- DB_URL=jdbc:postgresql://db:5432/recording
- DB_USER=recording
- DB_PASSWORD=recording
- APPENDER_TYPE=json-console
- KIBANA=true
depends_on:
- db
- elasticsearch
- kibana
- filebeat
db:
image: postgres:13
# just for local development
environment:
- POSTGRES_USER=recording
- POSTGRES_PASSWORD=recording
- POSTGRES_DB=recording
ports:
- 5432:5432
volumes:
- recording-db:/var/lib/postgresql/data/
elasticsearch:
container_name: elasticsearch
image: docker.elastic.co/elasticsearch/elasticsearch:7.11.0
environment:
- "ES_JAVA_OPTS=-Xms1g -Xmx1g"
- "discovery.type=single-node"
ports:
- 9200:9200
kibana:
container_name: kb-container
image: docker.elastic.co/kibana/kibana:7.11.0
environment:
- ELASTICSEARCH_HOSTS=http://elasticsearch:9200
- ELASTICSEARCH_URL=http://elasticsearch:9200
depends_on:
- elasticsearch
ports:
- 5601:5601
filebeat:
image: "docker.elastic.co/beats/filebeat:7.2.0"
user: root
volumes:
- ./filebeat.yml:/usr/share/filebeat/filebeat.yml:ro
- /var/lib/docker:/var/lib/docker:ro
- /var/run/docker.sock:/var/run/docker.sock
volumes:
recording-db: