feat jenkins cicd
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user