feat jenkins cicd

This commit is contained in:
2025-12-31 23:34:44 +08:00
parent 670140e7d3
commit 01621ec237
32 changed files with 505 additions and 92 deletions

View File

@@ -1,7 +1,8 @@
services:
jenkins:
image: jenkins/jenkins:lts
image: jenkins/jenkins:2.543
container_name: jenkins
user: "1000:984"
command: "--prefix=/jenkins"
restart: unless-stopped
ports:
@@ -14,7 +15,7 @@ services:
- TZ=Asia/Shanghai
nginx:
image: nginx:alpine
image: nginx:1.29.4
container_name: nginx
restart: unless-stopped
ports:
@@ -24,33 +25,4 @@ services:
- ./nginx/conf.d:/etc/nginx/conf.d:ro
- ./nginx/html:/var/www/html
- ./nginx/certs:/etc/nginx/certs:ro
prometheus:
image: prom/prometheus:latest
container_name: prometheus
ports:
- "9090:9090"
command:
- '--config.file=/etc/prometheus/prometheus.yml'
volumes:
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml:ro
node_exporter:
image: quay.io/prometheus/node-exporter:latest
container_name: node_exporter
command:
- '--path.rootfs=/host'
network_mode: host
pid: host
restart: unless-stopped
volumes:
- '/:/host:ro,rslave'
grafana:
image: grafana/grafana:latest
container_name: grafana
ports:
- "3000:3000"
environment:
- GF_SERVER_ROOT_URL=https://www.hlsq.asia/grafana/
- GF_SECURITY_ADMIN_PASSWORD=admin
- ./nginx/logs:/var/log/nginx