-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-production.yml
68 lines (62 loc) · 1.52 KB
/
docker-compose-production.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
version: "3.7"
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.4.0
container_name: elasticsearch
restart: always
environment:
- xpack.security.enabled=false
- discovery.type=single-node
- ELASTICSEARCH_USERNAME=elastic_user
- ELASTICSEARCH_PASSWORD=elastic_password
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
cap_add:
- IPC_LOCK
volumes:
- ./elasticsearch-data:/usr/share/elasticsearch/data
ports:
- 9200:9200
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9200"]
interval: 10s
timeout: 5s
retries: 5
kibana:
container_name: kibana
image: docker.elastic.co/kibana/kibana:7.4.0
restart: always
environment:
- ELASTICSEARCH_HOSTS=http://elasticsearch:9200 # address of elasticsearch docker container which kibana will connect
- ELASTICSEARCH_USERNAME=elastic_user
- ELASTICSEARCH_PASSWORD=elastic_password
ports:
- 5601:5601
depends_on:
- elasticsearch
backend:
build:
context: ./backend
environment:
- ENVIRONMENT=production
env_file:
- backend/.env.production
ports:
- "8081:8081"
depends_on:
elasticsearch:
condition: service_healthy
frontend:
build:
context: ./frontend
environment:
- NEXT_PUBLIC_API_BASE_URL=http://backend:8081
ports:
- "3000:3000"
depends_on:
- backend