-
Notifications
You must be signed in to change notification settings - Fork 90
/
docker-compose.yml
86 lines (79 loc) · 1.62 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
version: '2'
services:
postgres:
image: 'postgres:13.6-alpine'
volumes:
- 'postgres:/var/lib/postgresql/data'
- '.:/app'
env_file:
- '.env'
environment:
POSTGRES_USER: ${DATABASE_DEV_USERNAME}
POSTGRES_PASSWORD: ${DATABASE_DEV_PASSWORD}
website:
depends_on:
- 'postgres'
build: .
ports:
- '8282:3000'
- '1080:1080'
volumes:
- '.:/app'
- docker_website_bash_history:/home/lumen/hist
env_file:
- '.env'
environment:
HISTFILE: /home/lumen/hist/.bash_history
elasticsearch:
image: elasticsearch:7.17.0
environment:
- http.host=0.0.0.0
- transport.host=0.0.0.0
- "ES_JAVA_OPTS=-Xms2g -Xmx2g"
- discovery.type=single-node
volumes:
- esdata:/usr/share/elasticsearch/data
ports:
- 9200:9200
- 9300:9300
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
mem_limit: 4g
kibana:
depends_on:
- 'elasticsearch'
image: kibana:7.17.0
ports:
- 5601:5601
logstash:
env_file:
- '.env'
depends_on:
- 'elasticsearch'
- 'postgres'
build:
context: .
dockerfile: Dockerfile-logstash
command: logstash --path.settings /app/script/search_indexing/
volumes:
- '.:/app:ro'
tmpfs:
- /user/share/logstash/data
environment:
LS_JAVA_OPTS: "-Xmx2g -Xms2g"
redis:
image: 'redis:7.2'
command: redis-server
volumes:
- 'redis:/data'
volumes:
postgres:
esdata:
logstash:
docker_website_bash_history:
redis: