fix: use named volume for prometheus config, seed in CD workflow
This commit is contained in:
1 parent
7ce6a24a77
commit
1f2082e0fb
2 files changed
+20
-1
No files matched your search
@@ -40,6 +40,24 @@ jobs:
|
|||||||
NGINX_PORT=80
|
NGINX_PORT=80
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
- name: Seed Prometheus config
|
||||||
|
run: |
|
||||||
|
mkdir -p monitoring/prometheus
|
||||||
|
cat > monitoring/prometheus/prometheus.yml << 'EOF'
|
||||||
|
global:
|
||||||
|
scrape_interval: 15s
|
||||||
|
evaluation_interval: 15s
|
||||||
|
|
||||||
|
scrape_configs:
|
||||||
|
- job_name: 'prometheus'
|
||||||
|
static_configs:
|
||||||
|
- targets: ['localhost:9090']
|
||||||
|
|
||||||
|
- job_name: 'linearvoid'
|
||||||
|
static_configs:
|
||||||
|
- targets: ['playout:8081', 'chat:3000', 'nginx:80']
|
||||||
|
EOF
|
||||||
|
|
||||||
- name: Deploy with docker-compose
|
- name: Deploy with docker-compose
|
||||||
env:
|
env:
|
||||||
DOCKER_HOST: tcp://192.168.88.40:2375
|
DOCKER_HOST: tcp://192.168.88.40:2375
|
||||||
|
|||||||
@@ -102,7 +102,7 @@ services:
|
|||||||
container_name: linearvoid-prometheus
|
container_name: linearvoid-prometheus
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
- ./monitoring/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
|
- prometheus-config:/etc/prometheus
|
||||||
- prometheus-data:/prometheus
|
- prometheus-data:/prometheus
|
||||||
ports:
|
ports:
|
||||||
- "9090:9090"
|
- "9090:9090"
|
||||||
@@ -142,4 +142,5 @@ volumes:
|
|||||||
redis-data:
|
redis-data:
|
||||||
postgres-data:
|
postgres-data:
|
||||||
prometheus-data:
|
prometheus-data:
|
||||||
|
prometheus-config:
|
||||||
grafana-data:
|
grafana-data:
|
||||||
Reference in new issue
Block a user