Skip to content

Commit 4f80fd4

Browse files
committed
Complete functionning stack
1 parent d8d5025 commit 4f80fd4

File tree

5 files changed

+1796
-0
lines changed

5 files changed

+1796
-0
lines changed

docker-compose.yml

+41
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ services:
5959
- AWS_REGION=us-east-1
6060
- DRONE_GITEA_CLIENT_ID=1c949a89-3376-43a2-b253-950e4594b335
6161
- DRONE_GITEA_CLIENT_SECRET=HQYzuYU4MfpLYDili4z4HHdvhLyv0xQk4gVzn6nnKus0
62+
- DRONE_USER_CREATE=username:maxenceg2m,admin:true
6263
ports:
6364
- "8085:80"
6465
- "9002:9000"
@@ -93,6 +94,46 @@ services:
9394
volumes:
9495
- /var/run/docker.sock:/var/run/docker.sock
9596

97+
prometheus:
98+
image: prom/prometheus:v2.32.1
99+
container_name: prometheus
100+
ports:
101+
- 9090:9090
102+
command:
103+
- --config.file=/etc/prometheus/prometheus.yml
104+
volumes:
105+
- ./prometheus.yml:/etc/prometheus/prometheus.yml:ro
106+
depends_on:
107+
- cadvisor
108+
networks:
109+
- cicd_net
110+
111+
cadvisor:
112+
image: gcr.io/cadvisor/cadvisor:v0.39.3
113+
container_name: cadvisor
114+
ports:
115+
- 9202:8080
116+
volumes:
117+
- /:/rootfs:ro
118+
- /var/run:/var/run:ro
119+
- /sys:/sys:ro
120+
- /var/lib/docker/:/var/lib/docker:ro
121+
- /dev/disk/:/dev/disk:ro
122+
privileged: true
123+
networks:
124+
- cicd_net
125+
126+
grafana:
127+
image: grafana/grafana-enterprise:8.3.3
128+
container_name: grafana
129+
user: "1000"
130+
ports:
131+
- 3000:3000
132+
volumes:
133+
- ./grafana:/var/lib/grafana
134+
networks:
135+
- cicd_net
136+
96137
networks:
97138
cicd_net:
98139
name: cicd_net

0 commit comments

Comments
 (0)