-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
38 lines (30 loc) · 1.01 KB
/
Makefile
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
NETWORK_NAME := go-places-network
start:
docker-compose build
docker-compose up -d
make update_index_settings
stop:
docker-compose down
restart:
docker-compose down
make start
restart_app:
docker-compose down go-places-app
docker-compose build go-places-app
docker-compose up -d go-places-app
create-network:
docker-compose down
@if ! docker network ls | grep -q $(NETWORK_NAME); then \
echo "Creating Docker network: $(NETWORK_NAME)"; \
docker network create $(NETWORK_NAME); \
else \
echo "Docker network $(NETWORK_NAME) already exists."; \
fi
connect-network:
docker network connect go-places-network go-places-app
docker network connect go-places-network go-places-app-elasticsearch-1
mapping:
curl -X DELETE "localhost:9200/places"
curl -X PUT "localhost:9200/places/_mapping" -H "Content-Type: application/json" -d @config/schema.json
update_index_settings:
curl -XPUT -H "Content-Type: application/json" "http://localhost:9200/places/_settings" -d '{"index" : {"max_result_window" : 20000}}'