-
Notifications
You must be signed in to change notification settings - Fork 22
/
docker-compose.yml
67 lines (62 loc) · 1.61 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
version: '3.8'
services:
db:
image: timescale/timescaledb:2.5.0-pg14
ports:
- "5432:5432"
volumes:
- "db_data:/var/lib/postgresql/data"
environment:
PGDATA: /var/lib/postgresql/data/pgdata
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
POSTGRES_HOST_AUTH_METHOD: trust
web:
build:
context: .
dockerfile: ./Dockerfile
ports:
- "${HOST_PORT:-4000}:${PORT:-4000}"
- "${PROMETHEUS_METRICS_PORT:-9568}:${PROMETHEUS_METRICS_PORT:-9568}"
depends_on:
- db
environment:
- PORT
- HOST_PORT
- HOST
- SECRET_KEY_BASE
- LIVE_VIEW_SIGNING_SALT
- BALANCE_SNAPSHOT_ENABLED
- BALANCE_SNAPSHOT_BTC_USD_VENUE
- BALANCE_SNAPSHOT_BTC_USD_SYMBOL
- BALANCE_SNAPSHOT_USD_QUOTE_VENUE
- BALANCE_SNAPSHOT_USD_QUOTE_ASSET
- DATABASE_URL
prometheus:
image: 'prom/prometheus:v2.31.1'
restart: always
ports:
- 9090:9090
volumes:
- ./prometheus/:/etc/prometheus/
- prometheus_data:/prometheus
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
- '--web.console.libraries=/usr/share/prometheus/console_libraries'
- '--web.console.templates=/usr/share/prometheus/consoles'
grafana:
image: 'grafana/grafana:8.3.0'
restart: always
ports:
- "3000:3000"
volumes:
- grafana_data:/var/lib/grafana
- ./grafana/provisioning/:/etc/grafana/provisioning/
env_file:
- ./grafana/config.monitoring
volumes:
db_data:
web_build:
prometheus_data:
grafana_data: