-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
72 lines (67 loc) · 1.38 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
version: '3.2'
services:
redis:
image: redis
container_name: redis
ports:
- 6379:6379
networks:
- elastic
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.13.2
container_name: elasticsearch
environment:
ES_JAVA_OPTS: "-Xmx256m -Xms256m"
discovery.type: single-node
volumes:
- type: bind
source: ./elasticsearch
target: /usr/share/elasticsearch/data
ports:
- 9200:9200
networks:
- elastic
kibana:
image: docker.elastic.co/kibana/kibana:7.13.2
container_name: kibana
ports:
- 5601:5601
environment:
ELASTICSEARCH_URL: http://elasticsearch:9200
ELASTICSEARCH_HOSTS: '["http://elasticsearch:9200"]'
networks:
- elastic
depends_on:
- elasticsearch
backend:
container_name: backend
image: backend
build:
context: backend/
environment:
PORT: 9090
ES_HOST: elasticsearch
ES_INDEX: soltia
command: ["nest", "start"]
ports:
- 9090:9090
networks:
- elastic
depends_on:
- elasticsearch
frontend:
container_name: frontend
image: frontend
build:
context: frontend/
environment:
NEXT_PUBLIC_API: backend:9090
ports:
- 3000:3000
networks:
- elastic
depends_on:
- backend
networks:
elastic:
driver: bridge