-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose.yml
90 lines (84 loc) · 1.83 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
84
85
86
87
88
89
90
version: '3'
services:
app:
image: node:12
volumes:
- .:/app/
ports:
- 3000:3000
depends_on:
- postgres
working_dir: /app
command: npm run start:debug
postgres:
image: postgres
restart: always
environment:
POSTGRES_USERNAME: postgres
POSTGRES_PASSWORD: 123456
POSTGRES_DB: sampledb
volumes:
- postgres:/var/lib/postgresql/data
ports:
- 5432:5432
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.5.0
environment:
- bootstrap.memory_lock=true
- discovery.type=single-node
- transport.host=0.0.0.0
- 'ES_JAVA_OPTS=-Xms512m -Xmx512m'
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- elasticsearch:/usr/share/elasticsearch/data
ports:
- 9200:9200
- 9300:9300
logstash:
image: docker.elastic.co/logstash/logstash:7.5.0
depends_on:
- elasticsearch
environment:
LS_JAVA_OPTS: '-Xmx256m -Xms256m'
ELASTICSEARCH_HOST_PORT: elasticsearch:9200
ports:
- 5000:5000
- 9600:9600
volumes:
- logstash:/usr/share/logstash/data
apm:
image: docker.elastic.co/apm/apm-server:7.5.0
ports:
- 8200:8200
- 8201:8200
environment:
- ELASTICSEARCH_HOST_PORT=elasticsearch:9200
volumes:
- apm:/usr/share/apm-server
depends_on:
- elasticsearch
- kibana
kibana:
image: docker.elastic.co/kibana/kibana:7.5.0
depends_on:
- logstash
volumes:
- kibana:/usr/share/kibana/data
environment:
ELASTICSEARCH_HOST_PORT: elasticsearch:9200
ports:
- 5601:5601
redis:
image: redis
ports:
- '6379:6379'
command: ['redis-server', '--bind', 'redis', '--port', '6379']
volumes:
postgres:
elasticsearch:
kibana:
logstash:
apm: