-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
53 lines (49 loc) · 1.25 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
version: "3"
services:
backend:
container_name: backend
hostname: backend
build:
context: ./backend
dockerfile: Dockerfile
volumes:
- "./backend:/app"
ports:
- 8080:8080
frontend:
container_name: frontend
hostname: frontend
build:
context: ./frontend
dockerfile: Dockerfile
volumes:
- "./frontend:/app"
ports:
- 3000:3000
stdin_open: true
depends_on:
- backend
# elasticsearch:
# image: docker.elastic.co/elasticsearch/elasticsearch:7.4.2
# container_name: elasticsearch
# hostname: elasticsearch
# environment:
# - cluster.name=elasticsearch-cluster
# - bootstrap.memory_lock=true
# - discovery.type=single-node
# - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
# - "http.cors.allow-origin=http://localhost:3000"
# - "http.cors.enabled=true"
# - "http.cors.allow-headers=X-Requested-With,X-Auth-Token,Content-Type,Content-Length,Authorization"
# - "http.cors.allow-credentials=true"
# ulimits:
# memlock:
# soft: -1
# hard: -1
# volumes:
# - elasticsearch-data:/usr/share/elasticsearch/data
# ports:
# - 9200:9200
# volumes:
# elasticsearch-data:
# driver: local