fix: use named volume for prometheus config, seed in CD workflow
CD / deploy (push) Failing after 26s
CI / test (push) Successful in 6m2s
CI / docker (push) Failing after 2m41s
CI / release (push) Skipped

This commit is contained in:
zwitschi committed 2026-08-04 10:05:59 +02:00
1 parent 7ce6a24a77
commit 1f2082e0fb
2 files changed
+20 -1

No files matched your search

+18
View File
@@ -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
+2 -1
View File
@@ -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: