forked from thunderhead-labs/hyperliquid-stats
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
60 lines (56 loc) · 1.3 KB
/
docker-compose.yml
File metadata and controls
60 lines (56 loc) · 1.3 KB
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
version: '3'
services:
hyperliquid-stats:
build:
context: .
dockerfile: Dockerfile.server
volumes:
- ./app.py:/app/app.py
ports:
- 8001:8000
environment:
prometheus_multiproc_dir: /app
networks:
- hlstats
database:
image: postgres:latest
restart: always
environment:
POSTGRES_USER: user
POSTGRES_PASSWORD: password
POSTGRES_DB: hyperliquid
volumes:
- ./pgdata:/var/lib/postgresql/data
networks:
- hlstats
cron:
build:
context: .
dockerfile: Dockerfile.cron
volumes:
- ./scripts:/app/scripts
- ./config.json:/app/config.json
command: ["cron", "-f", "/app/scripts/cronjobs"]
networks:
- hlstats
prometheus:
image: prom/prometheus:latest
container_name: prometheus
user: root
volumes:
- prometheus:/data
- ./prometheus.yaml:/etc/prometheus/prometheus.yml
command:
- "--config.file=/etc/prometheus/prometheus.yml"
- "--storage.tsdb.path=/data/prom"
- "--log.level=warn"
- "--web.enable-lifecycle"
- "--storage.tsdb.min-block-duration=2h"
- "--storage.tsdb.max-block-duration=2h"
- "--web.listen-address=0.0.0.0:9090"
networks:
- hlstats
volumes:
prometheus: {}
networks:
hlstats: {}