forked from Patrik-Stas/indyscan
-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.idunion.yml
150 lines (138 loc) · 3.56 KB
/
docker-compose.idunion.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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
version: '3.7'
x-es-logging:
&es-logging
options:
max-size: '300m'
max-file: '2'
driver: json-file
x-standard-logging:
&service-logging
options:
max-size: '500m'
max-file: '3'
driver: json-file
x-ui-logging:
&ui-logging
options:
max-size: '100m'
max-file: '3'
driver: json-file
services:
indyscan-elasticsearch:
image: ${INDYSCAN_ELASTICSEARCH_IMAGE:-docker.elastic.co/elasticsearch/elasticsearch:7.6.1}
container_name: indyscan-elasticsearch
logging: *es-logging
networks:
- esnet
environment:
- xpack.security.enabled=false
- discovery.type=single-node
restart: unless-stopped
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
cap_add:
- IPC_LOCK
volumes:
- indyscan-es:/usr/share/elasticsearch/data
ports:
- 9200:9200
- 9300:9300
indyscan-kibana:
container_name: indyscan-kibana
image: ${INDYSCAN_KIBANA_IMAGE:-docker.elastic.co/kibana/kibana:7.6.1}
logging: *es-logging
networks:
- esnet
environment:
- ELASTICSEARCH_HOSTS=http://indyscan-elasticsearch.esnet:9200
restart: unless-stopped
ports:
- 5601:5601
depends_on:
- indyscan-elasticsearch
indyscan-daemon:
restart: unless-stopped
image: ${INDYSCAN_DAEMON_IMAGE:-pstas/indyscan-daemon:4.1.0}
container_name: indyscan-daemon
logging: *service-logging
depends_on:
- indyscan-elasticsearch
networks:
- esnet
- indyscan
environment:
- WORKER_CONFIGS=/home/indyscan/indyscan-daemon/app-configs-docker/idunion_testnet.json
- LOG_LEVEL=info
- LOG_HTTP_REQUESTS=true
- LOG_HTTP_RESPONSES=true
- SERVER_ENABLED=true
- SERVER_PORT=3709
- AUTOSTART=true
- ENABLE_LOGFILES=false
restart: unless-stopped
volumes:
- ./app-configs-daemon/:/home/indyscan/indyscan-daemon/app-configs-docker
indyscan-api:
restart: unless-stopped
image: ${INDYSCAN_API_IMAGE:-pstas/indyscan-api:4.1.0}
container_name: indyscan-api
logging: *service-logging
environment:
- NETWORKS_CONFIG_PATH=${INDYSCAN_API_CONFIG_PATH:-/home/indyscan/indyscan-api/app-config-docker/idunion_testnet.json}
- ES_URL=http://indyscan-elasticsearch.esnet:9200
- AUTOSTART=true
- LOG_LEVEL=debug
- PORT=3708
- LOG_HTTP_REQUESTS=true
- LOG_HTTP_RESPONSES=true
networks:
- indyscan
- esnet
ports:
- 3708:3708
volumes:
- ./app-config-api/:/home/indyscan/indyscan-api/app-config-docker
indyscan-webapp:
restart: unless-stopped
image: ${INDYSCAN_WEBAPP_IMAGE:-pstas/indyscan-webapp:4.1.0}
container_name: indyscan-webapp
logging: *ui-logging
environment:
- INDYSCAN_API_URL=http://indyscan-api.indyscan:3708
- DAEMON_WS_URL=http://indyscan-daemon.indyscan:3709
- PORT=3707
- LOG_LEVEL=warn
- LOG_HTTP_REQUESTS=false
- LOG_HTTP_RESPONSES=false
networks:
- indyscan
ports:
- 3707:3707
indyscan-daemon-ui:
restart: unless-stopped
image: ${INDYSCAN_DAEMON_UI_IMAGE:-pstas/indyscan-daemon-ui:4.1.0}
container_name: indyscan-daemon-ui
logging: *ui-logging
environment:
- PORT=3710
- PROXY_API_URL=http://indyscan-daemon.indyscan:3709
- CHOKIDAR_USEPOLLING=true
networks:
- indyscan
ports:
- 3710:3710
networks:
indyscan:
name: indyscan
driver: bridge
esnet:
name: esnet
driver: bridge
volumes:
indyscan-es:
driver: local