diff --git a/README.md b/README.md index 789dc3b..7007ba8 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # Alpine :: InfluxDB -![size](https://img.shields.io/docker/image-size/11notes/influxdb/2.7.1?color=0eb305) ![version](https://img.shields.io/docker/v/11notes/influxdb?color=eb7a09) ![pulls](https://img.shields.io/docker/pulls/11notes/influxdb?color=2b75d6) ![activity](https://img.shields.io/github/commit-activity/m/11notes/docker-influxdb?color=c91cb8) ![commit-last](https://img.shields.io/github/last-commit/11notes/docker-influxdb?color=c91cb8) +![size](https://img.shields.io/docker/image-size/11notes/influxdb/2.7.3?color=0eb305) ![version](https://img.shields.io/docker/v/11notes/influxdb?color=eb7a09) ![pulls](https://img.shields.io/docker/pulls/11notes/influxdb?color=2b75d6) ![activity](https://img.shields.io/github/commit-activity/m/11notes/docker-influxdb?color=c91cb8) ![commit-last](https://img.shields.io/github/last-commit/11notes/docker-influxdb?color=c91cb8) Run InfluxDB based on Alpine Linux. Small, lightweight, secure and fast 🏔️ @@ -10,11 +10,26 @@ Run InfluxDB based on Alpine Linux. Small, lightweight, secure and fast 🏔️ ## Run ```shell docker run --name influxdb \ + -p 8086:8086 \ -v .../etc/config.yml:/influxdb/etc/config.yml \ -v .../var:/influxdb/var \ -d 11notes/influxdb:[tag] ``` +```shell +docker run --name influxdb \ + -p 8086:8086 \ + -v .../etc/config.yml:/influxdb/etc/config.yml \ + -v .../var:/influxdb/var \ + -e DOCKER_INFLUXDB_INIT_MODE=setup \ + -e DOCKER_INFLUXDB_INIT_USERNAME=admin \ + -e DOCKER_INFLUXDB_INIT_PASSWORD=**************** \ + -e DOCKER_INFLUXDB_INIT_ORG=DOCKER \ + -e DOCKER_INFLUXDB_INIT_BUCKET=test \ + -e DOCKER_INFLUXDB_INIT_RETENTION=24h \ + -d 11notes/influxdb:[tag] +``` + ## Defaults | Parameter | Value | Description | | --- | --- | --- | @@ -24,14 +39,21 @@ docker run --name influxdb \ | `home` | /influxdb | home directory of user docker | | `web` | https://${IP}:8086 | default web ui | | `config` | /influxdb/etc/config.yml | default config location | +| `ssl` | /influxdb/ssl | SSL is enabled by default | -## Parent -* [influxdb:2.7.1-alpine](https://github.com/influxdata/influxdata-docker/blob/46221770aa619e97553bc95443954f6c4690e1ce/influxdb/2.7/alpine/Dockerfile) +## Access +| Parameter | Value | Description | +| --- | --- | --- | +| `web` | https://${IP}:8086 | default web ui | -## Built with +## Parent Image +* [influxdb:2.7.3-alpine](https://github.com/influxdata/influxdata-docker/blob/d141bf4a31102263b69128166c5b22496cac0c64/influxdb/2.7/alpine/Dockerfile) + +## Built with and thanks to * [influxdb](https://github.com/influxdata/influxdb) * [Alpine Linux](https://alpinelinux.org/) ## Tips +* Use reverse proxy for valid SSL certificates or add your certificates to /influxdb/ssl * Only use rootless container runtime (podman, rootless docker) * Don't bind to ports < 1024 (requires root), use NAT/reverse proxy (haproxy, traefik, nginx) \ No newline at end of file diff --git a/amd64.dockerfile b/amd64.dockerfile index fd6519a..01d8981 100644 --- a/amd64.dockerfile +++ b/amd64.dockerfile @@ -1,5 +1,5 @@ # :: Header - FROM influxdb:2.7.1-alpine + FROM influxdb:2.7.3-alpine ENV APP_ROOT=/influxdb # :: Run