-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
96 lines (96 loc) · 2.74 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
version: '3.2'
services:
frontend:
container_name: frontend_v2
image: aergoscan/frontend:2.6.1
ports:
- '80:80'
- '443:443'
build:
args:
ARG_USE_DNS: ${USE_DNS}
ARG_SCAN_API_HOST: ${SCAN_API_HOST}
ARG_SCAN_EXPLORER_HOST: ${SCAN_EXPLORER_HOST}
ARG_AERGO_NODE_HOST: ${AERGO_NODE_HOST}
ARG_AERGO_NODE: ${AERGO_NODE}
ARG_API_URL: ${SCAN_API_HOST}/v2
depends_on:
- backend
backend:
container_name: aergoscan-api
image: aergoscan/api:2.6.1
ports:
- '3000:3000'
build:
context: ./aergoscan_v2_api
environment:
AERGO_NODE: ${AERGO_NODE}
HOST_API: ${SCAN_API_HOST}
SELECTED_NETWORK: local
ES_URL: es:9200
HTTP_PORT: 3000
depends_on:
- db
restart: always
indexer:
container_name: indexer
image: aergo/indexer2:2.6.1
ports:
- 8000:8000
privileged: true
command: indexer
- --aergo=${AERGO_NODE}
- --dburl=es:9200
- --prefix=local
- --mode=all
- --from=0
- --to=0
# - --contract=
# - --token=
depends_on:
- db
restart: always
db:
container_name: es
image: docker.elastic.co/elasticsearch/elasticsearch:7.15.2
environment:
discovery.type: single-node
xpack.security.enabled: false
bootstrap.memory_lock: true
ES_JAVA_OPTS: -Xms1024m -Xmx1024m
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- type: bind
source: ./data/eldata/data # custom
target: /usr/share/elasticsearch/data
- type: bind
source: ./data/eldata/logs # custom
target: /usr/share/elasticsearch/logs
ports:
- 9200:9200
- 9300:9300
privileged: true
logging:
driver: 'json-file'
options:
max-file: '7'
max-size: '1000m'
# 키바나 조회 필요 시 주석 해제
# kibana:
# image: docker.elastic.co/kibana/kibana:7.15.2
# container_name: kibana
# ports:
# - 5601:5601
# environment:
# ELASTICSEARCH_URL: http://es:9200
# ELASTICSEARCH_HOSTS: http://es:9200
# logging:
# driver: 'json-file'
# options:
# max-file: '7'
# max-size: '1000m'
# depends_on:
# - db