This repository has been archived by the owner on Dec 26, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
75 lines (68 loc) · 1.5 KB
/
docker-compose.yaml
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
version: '3'
services:
application:
build:
context: ./
dockerfile: Dockerfile
env_file:
- ./.env
depends_on:
- database
restart: always
database:
image: postgres
env_file:
- ./database.env
volumes:
- type: volume
source: postgres_data
target: /var/lib/postgresql/data
ports:
- '8001:5432'
restart: always
redis:
image: redis:alpine
restart: always
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.13.4
environment:
- 'discovery.type=single-node'
- ES_JAVA_OPTS=-Xms1g -Xmx1g
# - "xpack.security.enabled=true"
volumes:
- type: volume
source: elastic_data
target: /usr/share/elasticsearch/data
ports:
- 9200:9200
restart: always
kibana:
image: docker.elastic.co/kibana/kibana:7.13.4
environment:
- ELASTICSEARCH_HOSTS=http://elasticsearch:9200
- SERVER_PORT=49237
# - XPACK_SECURITY_ENABLED=true
depends_on:
- elasticsearch
ports:
- 49237:49237
restart: always
logstash:
build:
dockerfile: ./docker/logstash/Dockerfile
context: ./
env_file: ./logstash.env
volumes:
- type: bind
source: ./docker/logstash/config/logstash.conf
target: /usr/share/logstash/pipeline/logstash.conf
ports:
- 9600:9600
depends_on:
- elasticsearch
- database
restart: always
volumes:
redis_data:
postgres_data:
elastic_data: