no idea- added loki and other stuff to market-data-gateway, also added config lib
This commit is contained in:
parent
b957fb99aa
commit
1b71fc87ab
72 changed files with 6178 additions and 153 deletions
|
|
@ -1,3 +1,5 @@
|
|||
version: '3.8'
|
||||
|
||||
services:
|
||||
# Dragonfly - Redis replacement for caching and events
|
||||
dragonfly:
|
||||
|
|
@ -108,7 +110,7 @@ services:
|
|||
image: dpage/pgadmin4:latest
|
||||
container_name: trading-bot-pgadmin
|
||||
environment:
|
||||
PGADMIN_DEFAULT_EMAIL: boki@stare.gg
|
||||
PGADMIN_DEFAULT_EMAIL: admin@tradingbot.local
|
||||
PGADMIN_DEFAULT_PASSWORD: admin123
|
||||
PGADMIN_CONFIG_SERVER_MODE: 'False'
|
||||
PGADMIN_DISABLE_POSTFIX: 'true'
|
||||
|
|
@ -131,7 +133,7 @@ services:
|
|||
ME_CONFIG_MONGODB_ADMINPASSWORD: trading_mongo_dev
|
||||
ME_CONFIG_MONGODB_SERVER: mongodb
|
||||
ME_CONFIG_MONGODB_PORT: 27017
|
||||
ME_CONFIG_BASICAUTH_USERNAME: boki
|
||||
ME_CONFIG_BASICAUTH_USERNAME: admin
|
||||
ME_CONFIG_BASICAUTH_PASSWORD: admin123
|
||||
ports:
|
||||
- "8081:8081"
|
||||
|
|
@ -141,7 +143,7 @@ services:
|
|||
networks:
|
||||
- trading-bot-network
|
||||
|
||||
# Prometheus - Metrics collection (optional)
|
||||
# Prometheus - Metrics collection
|
||||
prometheus:
|
||||
image: prom/prometheus:latest
|
||||
container_name: trading-bot-prometheus
|
||||
|
|
@ -160,21 +162,42 @@ services:
|
|||
networks:
|
||||
- trading-bot-network
|
||||
|
||||
# Grafana - Metrics visualization (optional)
|
||||
# Loki - Log aggregation
|
||||
loki:
|
||||
image: grafana/loki:2.9.2
|
||||
container_name: trading-bot-loki
|
||||
ports:
|
||||
- "3100:3100"
|
||||
volumes:
|
||||
- loki_data:/loki
|
||||
- ./monitoring/loki:/etc/loki
|
||||
command: -config.file=/etc/loki/loki-config.yaml
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "-q", "--spider", "http://localhost:3100/ready"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- trading-bot-network
|
||||
|
||||
# Grafana - Visualization for logs and metrics
|
||||
grafana:
|
||||
image: grafana/grafana:latest
|
||||
image: grafana/grafana:10.2.0
|
||||
container_name: trading-bot-grafana
|
||||
ports:
|
||||
- "3000:3000"
|
||||
environment:
|
||||
- GF_SECURITY_ADMIN_PASSWORD=admin123
|
||||
- GF_SECURITY_ADMIN_USER=boki
|
||||
- GF_SECURITY_ADMIN_PASSWORD=admin
|
||||
- GF_SECURITY_ADMIN_USER=admin
|
||||
- GF_PATHS_PROVISIONING=/etc/grafana/provisioning
|
||||
- GF_USERS_ALLOW_SIGN_UP=false
|
||||
volumes:
|
||||
- grafana_data:/var/lib/grafana
|
||||
- ./monitoring/grafana/provisioning:/etc/grafana/provisioning
|
||||
depends_on:
|
||||
- prometheus
|
||||
- loki
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- trading-bot-network
|
||||
|
|
@ -187,6 +210,7 @@ volumes:
|
|||
pgadmin_data:
|
||||
prometheus_data:
|
||||
grafana_data:
|
||||
loki_data:
|
||||
|
||||
networks:
|
||||
trading-bot-network:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue