Add prometheus to compose setup
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
83f51a4668
commit
935e8c673e
10
Dockerfile
10
Dockerfile
@ -2,8 +2,14 @@ FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build-env
|
|||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
#install npm
|
#install npm
|
||||||
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash -
|
ENV NODE_MAJOR=20
|
||||||
RUN apt-get install -y nodejs
|
RUN apt update && \
|
||||||
|
apt install -y ca-certificates curl gnupg && \
|
||||||
|
mkdir -p /etc/apt/keyrings && \
|
||||||
|
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg && \
|
||||||
|
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list && \
|
||||||
|
apt update && \
|
||||||
|
apt install nodejs -y
|
||||||
|
|
||||||
#run yarn install
|
#run yarn install
|
||||||
COPY . .
|
COPY . .
|
||||||
|
@ -17,6 +17,16 @@
|
|||||||
},
|
},
|
||||||
"SiteUrl": "http://localhost:8001",
|
"SiteUrl": "http://localhost:8001",
|
||||||
"Redis": "redis",
|
"Redis": "redis",
|
||||||
"Postgres": "User ID=postgres;Password=postgres;Database=void;Pooling=true;Host=postgres:5432"
|
"Postgres": "User ID=postgres;Password=postgres;Database=void;Pooling=true;Host=postgres:5432",
|
||||||
|
"Prometheus": {
|
||||||
|
"Url": "http://prometheus:9090",
|
||||||
|
"EgressQuery": "increase(egress{{file=\"{0}\"}}[1d])"
|
||||||
|
},
|
||||||
|
"MetadataStore": "postgres",
|
||||||
|
"DefaultFileStore": "local-disk",
|
||||||
|
"JwtSettings":{
|
||||||
|
"Issuer": "http://localhost:8001",
|
||||||
|
"Key": "my_very_strong_secret_key"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -11,6 +11,7 @@ services:
|
|||||||
- postgres
|
- postgres
|
||||||
- redis
|
- redis
|
||||||
- clamav
|
- clamav
|
||||||
|
- prometheus
|
||||||
redis:
|
redis:
|
||||||
image: "redis:alpine"
|
image: "redis:alpine"
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
@ -28,4 +29,10 @@ services:
|
|||||||
image: "clamav/clamav"
|
image: "clamav/clamav"
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
- "./data/clamav:/var/lib/clamav"
|
- "./data/clamav:/var/lib/clamav"
|
||||||
|
prometheus:
|
||||||
|
image: bitnami/prometheus
|
||||||
|
restart: unless-stopped
|
||||||
|
volumes:
|
||||||
|
- "./data/prometheus:/opt/bitnami/prometheus/data"
|
||||||
|
- "./prometheus.yml:/opt/bitnami/prometheus/conf/prometheus.yml:ro"
|
6
prometheus.yml
Normal file
6
prometheus.yml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
global:
|
||||||
|
scrape_interval: "10s"
|
||||||
|
scrape_configs:
|
||||||
|
- job_name: void-cat
|
||||||
|
static_configs:
|
||||||
|
- targets: [ "web:9090" ]
|
Loading…
Reference in New Issue
Block a user