Skip to content
This repository was archived by the owner on May 20, 2024. It is now read-only.

Commit 732b4cd

Browse files
authored
Merge pull request #72 from dark0ghost/beta
Beta
2 parents 05118bf + 377ce07 commit 732b4cd

File tree

5 files changed

+29
-16
lines changed

5 files changed

+29
-16
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
*.db
2+
/grafana
3+
/influxdb
14
*.db3
25
postgres/
36
*.log

docker-compose.yml

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,30 @@
1-
version: '3.3'
1+
version: '3.8'
22

33
services:
44
bot:
55
build:
66
context: .
77
dockerfile:
88
Dockerfile
9+
depends_on:
10+
- postgres
11+
- redis
12+
- influxdb
913
env_file:
10-
bot.evn
14+
evn/bot.evn
1115
restart:
1216
on-failure
1317
volumes:
1418
- ".:/usr/src/app"
1519

1620
postgres:
21+
container_name: postgres
1722
image:
18-
postgres
23+
postgres:13
1924
volumes:
2025
- "./postgres/data:/var/lib/postgresql/data/pgdata"
2126
env_file:
22-
- pg.env
27+
- evn/pg.env
2328
restart:
2429
always
2530
ports:
@@ -42,33 +47,32 @@ services:
4247
restart: always
4348

4449
influxdb:
45-
image: influxdb:1.8-alpine
50+
image: influxdb:1.8
4651
container_name: "influxdb"
4752
restart: always
4853
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
5759

5860
grafana:
5961
image: grafana/grafana:7.3.4
6062
container_name: "grafana"
63+
restart: always
6164
volumes:
62-
- "grafana-data:/var/lib/grafana"
65+
- "/grafana:/var/lib/grafana"
6366
environment:
6467
- GF_DATE_FORMATS_DEFAULT_TIMEZONE=browser
6568
ports:
66-
- "3000:3000"
69+
- 3000:3000
70+
user: "472"
6771

6872
adminer:
6973
image:
7074
adminer
7175
restart:
7276
always
7377
ports:
74-
- 8080:8080
78+
- 8080:8080

bot.evn renamed to evn/bot.evn

File renamed without changes.

evn/influxdb.evn

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
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

pg.env renamed to evn/pg.env

File renamed without changes.

0 commit comments

Comments
 (0)