···11+ARG VERSION=2
22+33+FROM caddy:${VERSION}-builder AS builder
44+55+# We need this plugin to obtain SSL certificates from Cloudflare
66+RUN xcaddy build \
77+ --with github.com/caddy-dns/cloudflare
88+99+FROM caddy:${VERSION}
1010+1111+COPY --from=builder /usr/bin/caddy /usr/bin/caddy
···11+# my global config
22+global:
33+ scrape_interval: 60s # Set the scrape interval to every 15 seconds. Default is every 1 minute.
44+ evaluation_interval: 60s # Evaluate rules every 15 seconds. The default is every 1 minute.
55+ # scrape_timeout is set to the global default (10s).
66+77+# Load rules once and periodically evaluate them according to the global 'evaluation_interval'.
88+#rule_files:
99+ # - "first_rules.yml"
1010+ # - "second_rules.yml"
1111+1212+# A scrape configuration containing exactly one endpoint to scrape:
1313+# Here it's Prometheus itself.
1414+scrape_configs:
1515+ # The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.
1616+ - job_name: 'prometheus'
1717+ # Override the global default and scrape targets from this job every 5 seconds.
1818+ scrape_interval: 5s
1919+ static_configs:
2020+ - targets: ['localhost:9090']
2121+2222+ - job_name: 'cadvisor'
2323+ scrape_interval: 5s
2424+ static_configs:
2525+ - targets: ['cadvisor:8080']
2626+2727+ - job_name: 'node-exporter'
2828+ scrape_interval: 5s
2929+ static_configs:
3030+ - targets: ['node-exporter:9100']
···11+services:
22+ stump:
33+ image: aaronleopold/stump:latest
44+ container_name: stump
55+ # Replace my paths (prior to the colons) with your own
66+ volumes:
77+ - /home/pedro-correa/.stump:/config
88+ - /media/books:/data
99+ environment:
1010+ - PUID=1000
1111+ - PGID=1000
1212+ # This `environment` field is optional, remove if you don't need it.
1313+ # I am using it as an example here, but it's actually a default value.
1414+ - STUMP_CONFIG_DIR=/config
1515+ restart: unless-stopped
1616+ networks:
1717+ - stump-network
1818+ labels:
1919+ glance.name: Stump
2020+ glance.icon: si:bookstack
2121+ glance.url: https://stump.tulkdan.dev
2222+2323+networks:
2424+ stump-network:
2525+ name: proxy-network
2626+ external: true
+36
wakapi/docker-compose.yml
···11+services:
22+ wakapi:
33+ image: ghcr.io/muety/wakapi:latest
44+ init: true
55+ container_name: wakapi
66+ restart: unless-stopped
77+ environment:
88+ WAKAPI_PASSWORD_SALT_FILE: "/run/secrets/password_salt" # alternatively, set WAKAPI_PASSWORD_SALT directly without the use of secrets
99+ secrets:
1010+ - source: password_salt
1111+ target: password_salt
1212+ uid: '1000'
1313+ gid: '1000'
1414+ mode: '0400'
1515+ volumes:
1616+ - wakapi-data:/data
1717+ labels:
1818+ glance.name: Wakatime
1919+ glance.icon: si:wakatime
2020+ glance.url: https://wakapi.tulkdan.dev
2121+ networks:
2222+ - wakapi-network
2323+2424+# secrets can be defined either from a local file or from an environment variable defined on the client host (the one that runs `docker compose` command)
2525+# see https://docs.docker.com/compose/how-tos/use-secrets/ for details
2626+secrets:
2727+ password_salt:
2828+ file: password_salt.txt
2929+3030+volumes:
3131+ wakapi-data:
3232+3333+networks:
3434+ wakapi-network:
3535+ name: proxy-network
3636+ external: true