This repository has been archived by the owner on Nov 21, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
/
env.example
142 lines (111 loc) · 4.42 KB
/
env.example
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
# NOTE:
#
# 1. You wouldn't need to change any of these settings
# if you're deloying sarjitsu for the first time
# and if you'd want it to launch all containerized services
#
# 2. keep the *_HOST IP/hostnames empty if
# their instances don't exist yet. If they're set,
# sarjitsu assumes them to be active and would
# include those *_HOST values in other componenets
#
###########################################################
# Container configuration
# Specify port mapping to the host, for each component.
# Exposed as services, at <hosting server's address>:<port>
# METRICSTORE_PORT_MAPPING=9700
# DATASOURCE_PORT_MAPPING=9701
# FRONTEND_PORT_MAPPING=9702
# MIDDLEWARE_PORT_MAPPING=9703
# BACKEND_PORT_MAPPING=9704
# PROXY_PORT_MAPPING=9705
# https://github.com/arcolife/sarjitsu/issues/6
METRICSTORE_PORT_MAPPING=5432
DATASOURCE_PORT_MAPPING=9200
FRONTEND_PORT_MAPPING=3000
MIDDLEWARE_PORT_MAPPING=5000
BACKEND_PORT_MAPPING=8000
PROXY_PORT_MAPPING=8001
# Specify names for containers to be launched.
METRICSTORE_CONTAINER_ID=postrgres_jitsu
DATASOURCE_CONTAINER_ID=elastic_jitsu
FRONTEND_CONTAINER_ID=grafana_jitsu
MIDDLEWARE_CONTAINER_ID=api_jitsu
BACKEND_CONTAINER_ID=server_jitsu
CACHING_CONTAINER_ID=redis_jitsu
PROXY_CONTAINER_ID=nginx_jistu
###########################################################
# 'metricstore' config (postgres) - for grafana's metadata
# uncomment this if you have a custom PostgreSQL deployment
# Leave commented, if you'd want sarjitsu to use
# linked container mechanism to find IP
# DB_HOST=<hostname/IP>
DB_NAME=grafana
DB_USER=grafana
DB_PASSWORD=sarjitsu123
DB_PORT=5432
# FIXME/TODO: data dir option below is currently not integrated into sarjitsu;
#
# one would have to build a postgres container, to make new mountpoint
# available. Refer to https://hub.docker.com/_/postgres/ for more.
# set to default
# DB_DATA_DIR=/var/lib/postgresql/data
# change this in production, if you have a fs mountpoint (for persistent disks)
# if so, you'll have to build the postgres container (and not just pull it
# from the official dockerhub)
###########################################################
# 'datasource' config (elasticsearch) - source of timeseries data
# sarjitsu currently needs passwordless access to elasticsearch;
# this protocol goes into grafana's datasource settings.
ES_PROTOCOL=http
# uncomment this if you have a custom ElasticSearch deployment
# Leave commented, if you'd want sarjitsu to use
# linked container mechanism to find IP
# ES_HOST=<hostname/IP without $ES_PROTOCOL>
ES_PORT=9200
# set this if you want a particular cluster name while building
# the ElasticSearch container. If not set, random string will be assigned
# ES_CLUSTER_NAME=elasticsearch$RANDOM
# below settings are for data sent to ES by backend and middleware;
# recommended to keep these values to default.
INDEX_PREFIX=sarjitsu
BULK_ACTION_COUNT=2000
INDEX_VERSION=1
# uncomment and set this in case you wish to change
# elasticsearch's indexing settings
# REPLICAS_COUNT=
# SHARD_COUNT=
###########################################################
# 'frontend' config (grafana) - visualization framework
GRAFANA_DB_TYPE=postgres
# uncomment this if you have a custom Grafana deployment
# Leave commented, if you'd want sarjitsu to use
# linked container mechanism to find IP
# GRAFANA_HOST=<hostname/IP without http>
# keep this empty, unless you have a pre-deployed instance.
# empty means sarjitsu uses linked docker mechanism to find IP
# make sure this is above 1024; 3000 is standard
GRAFANA_PORT=3000
GRAFANA_TIMEFIELD=recorded_on
# you could change these
GRAFANA_DS_NAME=elastic
# don't change this. It is here for reference of app itself
# sarjitsu.sar should be same as $INDEX_PREFIX.sar
# (which was defined under ES settings section above)
GRAFANA_DS_PATTERN=[sarjitsu.sar-]YYYYMMDD
###########################################################
# 'middleware' config (frontend API) - builds dashboards
MIDDLEWARE_HOST=middleware
MIDDLEWARE_PORT=5000
# don't change this. It is here for reference of app itself
MIDDLEWARE_ENDPOINT=/db/create/
MIDDLEWARE_UPLOAD_ENDPOINT=upload/
###########################################################
# 'backend' config (app server) - main application
BACKEND_HOST=web
BACKEND_SERVER_PORT=8000
PROXY_PORT=8001
###########################################################
# 'redis' config (alpine:redis) - official port
CACHE_PORT=6379
###########################################################