-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathdocker-compose.dev.yml
53 lines (46 loc) · 1.08 KB
/
docker-compose.dev.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
version: "3"
services:
trade_bot:
build:
dockerfile: cmd/trade-bot/Dockerfile
context: .
container_name: trade_bot
env_file:
- cmd/trade-bot/.env
networks:
- bot_internal
grafana:
image: grafana/grafana:8.2.6-ubuntu
container_name: grafana
restart: always
ports:
- 3000:3000
volumes:
- ./grafana.ini:/etc/grafana/grafana.ini
- grafana_data:/var/lib/grafana
networks:
- default
- bot_internal
prometheus:
image: prom/prometheus:latest
container_name: prometheus
restart: always
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'
expose:
- 9090
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
- prometheus_data:/prometheus
networks:
- bot_internal
volumes:
grafana_data:
prometheus_data:
networks:
default:
bot_internal:
internal: true