This repository was archived by the owner on May 20, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +29
-16
lines changed Expand file tree Collapse file tree 5 files changed +29
-16
lines changed Original file line number Diff line number Diff line change
1
+ * .db
2
+ /grafana
3
+ /influxdb
1
4
* .db3
2
5
postgres /
3
6
* .log
Original file line number Diff line number Diff line change 1
- version : ' 3.3 '
1
+ version : ' 3.8 '
2
2
3
3
services :
4
4
bot :
5
5
build :
6
6
context : .
7
7
dockerfile :
8
8
Dockerfile
9
+ depends_on :
10
+ - postgres
11
+ - redis
12
+ - influxdb
9
13
env_file :
10
- bot.evn
14
+ evn/ bot.evn
11
15
restart :
12
16
on-failure
13
17
volumes :
14
18
- " .:/usr/src/app"
15
19
16
20
postgres :
21
+ container_name : postgres
17
22
image :
18
- postgres
23
+ postgres:13
19
24
volumes :
20
25
- " ./postgres/data:/var/lib/postgresql/data/pgdata"
21
26
env_file :
22
- - pg.env
27
+ - evn/ pg.env
23
28
restart :
24
29
always
25
30
ports :
@@ -42,33 +47,32 @@ services:
42
47
restart : always
43
48
44
49
influxdb :
45
- image : influxdb:1.8-alpine
50
+ image : influxdb:1.8
46
51
container_name : " influxdb"
47
52
restart : always
48
53
volumes :
49
- - " influxdb:/var/lib/influxdb"
50
- environment : # см. файл .env (в репозитории - .env_dist)
51
- - INFLUXDB_DB=${DB}
52
- - INFLUXDB_ADMIN_USER=${DB_ADMIN_USER} # Этот юзер нужен для создания базы
53
- - INFLUXDB_ADMIN_USER_PASSWORD=${DB_ADMIN_PASS}
54
- - INFLUXDB_USER=${DB_USER} # Этот юзер для записи в БД и чтения со стороны Grafana
55
- - INFLUXDB_USER_PASSWORD=${DB_PASS}
56
- - INFLUXDB_HTTP_AUTH_ENABLED=true
54
+ - " ./influxdb:/var/lib/influxdb"
55
+ env_file :
56
+ - evn/influxdb.evn
57
+ ports :
58
+ - 8086:8086
57
59
58
60
grafana :
59
61
image : grafana/grafana:7.3.4
60
62
container_name : " grafana"
63
+ restart : always
61
64
volumes :
62
- - " grafana-data :/var/lib/grafana"
65
+ - " / grafana:/var/lib/grafana"
63
66
environment :
64
67
- GF_DATE_FORMATS_DEFAULT_TIMEZONE=browser
65
68
ports :
66
- - " 3000:3000"
69
+ - 3000:3000
70
+ user : " 472"
67
71
68
72
adminer :
69
73
image :
70
74
adminer
71
75
restart :
72
76
always
73
77
ports :
74
- - 8080:8080
78
+ - 8080:8080
File renamed without changes.
Original file line number Diff line number Diff line change
1
+ INFLUXDB_DB=Metric
2
+ INFLUXDB_ADMIN_USER=metric_admin
3
+ INFLUXDB_ADMIN_USER_PASSWORD=FZ8P(uJ5K8n_,4"5 # random password
4
+ INFLUXDB_USER=metric
5
+ INFLUXDB_USER_PASSWORD=`S*B-9kJ62U^7d?K # random password
6
+ INFLUXDB_HTTP_AUTH_ENABLED=true
File renamed without changes.
You can’t perform that action at this time.
0 commit comments