Skip to content
Snippets Groups Projects
Commit 365e09a7 authored by Christian Elberfeld's avatar Christian Elberfeld
Browse files

change dockerstats to default cotainer

parent f4c7ea49
No related branches found
No related tags found
No related merge requests found
......@@ -14,7 +14,6 @@
src: "{{ item }}"
dest: "{{ basedir }}/{{ item }}"
with_items:
- Dockerfile
- docker-compose.yml
......
FROM node:21-alpine
RUN apk update \
&& apk upgrade \
&& apk add --no-cache git
RUN mkdir -p /usr/src/app \
&& cd /usr/src/app \
&& git clone https://github.com/elberfeld/docker_stats_exporter.git \
&& cd /usr/src/app/docker_stats_exporter \
&& git checkout 2020.07.30.1 \
&& npm install
WORKDIR /usr/src/app/docker_stats_exporter
EXPOSE 9487
ENV DOCKERSTATS_PORT=9487 DOCKERSTATS_INTERVAL=15 DEBUG=0
ENTRYPOINT [ "npm", "start" ]
......@@ -4,12 +4,14 @@ services:
app:
build: .
image: wywywywy/docker_stats_exporter
restart: always
ports:
- "{{ int_ip4 }}:9487:9487"
- "{{ int_ip4 }}:{{ metrics_port }}:{{ metrics_port }}"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /usr/bin/docker:/usr/bin/docker
labels:
- com.centurylinklabs.watchtower.enable=false
environment:
DOCKERSTATS_PORT: {{ metrics_port }}
DOCKERSTATS_INTERVAL: 15
DEBUG: 0
......@@ -99,7 +99,8 @@
- {
role: common/docker_dockerstats, tags: dockerstats,
servicename: dockerstats,
basedir: /srv/dockerstats
basedir: /srv/dockerstats,
metrics_port: 9487
}
- {
role: common/docker_traefik, tags: traefik,
......@@ -193,7 +194,8 @@
- {
role: common/docker_dockerstats, tags: dockerstats,
servicename: dockerstats,
basedir: /srv/dockerstats
basedir: /srv/dockerstats,
metrics_port: 9487
}
- {
role: common/docker_ldap, tags: ldap,
......@@ -310,7 +312,8 @@
- {
role: common/docker_dockerstats, tags: dockerstats,
servicename: dockerstats,
basedir: /srv/dockerstats
basedir: /srv/dockerstats,
metrics_port: 9487
}
- {
role: common/docker_traefik, tags: traefik,
......@@ -380,7 +383,8 @@
- {
role: common/docker_dockerstats, tags: dockerstats,
servicename: dockerstats,
basedir: /srv/dockerstats
basedir: /srv/dockerstats,
metrics_port: 9487
}
- {
role: common/docker_traefik, tags: traefik,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment