-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yaml
77 lines (73 loc) · 1.69 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
76
77
version: '3.3'
services:
elasticsearch:
build: docker/elasticsearch
container_name: elasticsearch
ports:
- 9200:9200
- 9300:9300
volumes:
- es_data:/usr/share/elasticsearch/data
- certs:/usr/share/elasticsearch/config/certs
networks:
- elastic
- webapp
environment:
- ELASTIC_PASSWORD=${ELASTIC_PASSWORD}
ulimits:
memlock:
soft: -1
hard: -1
deploy:
resources:
limits:
memory: 4G
kibana:
build: docker/kibana
container_name: kibana
ports:
- 5601:5601
depends_on:
- elasticsearch
volumes:
- kibana_data:/usr/share/kibana/data
- certs:/usr/share/kibana/config/certs
networks:
- elastic
environment:
- ELASTICSEARCH_PASSWORD=${KIBANA_PASSWORD}
# webapp:
# build:
# context: webapp-next
# args:
# - NEXT_PUBLIC_ELASTIC_API_KEY_NAME=${NEXT_PUBLIC_ELASTIC_API_KEY_NAME}
# container_name: webapp
# depends_on:
# - elasticsearch
# ports:
# - '3000:3000'
# volumes:
# - certs:/app/certs
# networks:
# - webapp
# environment:
# - ELASTIC_HOST=${ELASTIC_HOST}
# - ELASTIC_PASSWORD=${ELASTIC_PASSWORD}
# - NODEMAILER_HOST=${NODEMAILER_HOST}
# - NODEMAILER_PORT=${NODEMAILER_PORT}
# - NODEMAILER_USER=${NODEMAILER_USER}
# - NODEMAILER_NODEMAILER_PASSWORDPORT=${NODEMAILER_PASSWORD}
# - NODEMAILER_FROM=${NODEMAILER_FROM}
# - NODEMAILER_BASEURL=${NODEMAILER_BASEURL}
volumes:
certs:
driver: local
es_data:
driver: local
kibana_data:
driver: local
networks:
elastic:
driver: bridge
webapp:
driver: bridge