This repository was archived by the owner on May 20, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
78 lines (72 loc) · 1.42 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
version: '3.8'
services:
bot:
build:
context: .
dockerfile:
Dockerfile
depends_on:
- postgres
- redis
- influxdb
env_file:
evn/bot.evn
restart:
on-failure
volumes:
- ".:/usr/src/app"
postgres:
container_name: postgres
image:
postgres:13
volumes:
- "./postgres/data:/var/lib/postgresql/data/pgdata"
env_file:
- evn/pg.env
restart:
always
ports:
- 5432:5432
redis:
container_name: redis
image:
redis:alpine
ports:
- "6379:6379"
command:
- 'redis-server'
- '--loglevel ${REDIS_LOGLEVEL:-warning}'
- '--databases 2'
- '--maxmemory ${REDIS_MAXMEM:-50mb}'
- '--maxmemory-policy ${REDIS_POLICY:-noeviction}'
volumes:
- ../data/redis:/data
restart: always
influxdb:
image: influxdb:1.8
container_name: "influxdb"
restart: always
volumes:
- "./influxdb:/var/lib/influxdb"
env_file:
- evn/influxdb.evn
ports:
- 8086:8086
grafana:
image: grafana/grafana:7.3.4
container_name: "grafana"
restart: always
volumes:
- "/grafana:/var/lib/grafana"
environment:
- GF_DATE_FORMATS_DEFAULT_TIMEZONE=browser
ports:
- 3000:3000
user: "472"
adminer:
image:
adminer
restart:
always
ports:
- 8080:8080