mirror of
https://github.com/ChristianLempa/boilerplates.git
synced 2024-12-01 20:54:51 +01:00
24 lines
799 B
YAML
24 lines
799 B
YAML
version: '3'
|
|
|
|
services:
|
|
influxdb:
|
|
container_name: influxdb
|
|
image: influxdb:2.1-alpine
|
|
ports:
|
|
- '8086:8086'
|
|
volumes:
|
|
- influxdb-data:/var/lib/influxdb2
|
|
# # Automatically setup influxdb
|
|
# TODO: no tested...
|
|
# environment:
|
|
# - DOCKER_INFLUXDB_INIT_MODE=setup
|
|
# - DOCKER_INFLUXDB_INIT_USERNAME=my-user
|
|
# - DOCKER_INFLUXDB_INIT_PASSWORD=my-password
|
|
# - DOCKER_INFLUXDB_INIT_ORG=my-org
|
|
# - DOCKER_INFLUXDB_INIT_BUCKET=my-bucket
|
|
# # (optional) Configure Data Retention
|
|
# - DOCKER_INFLUXDB_INIT_RETENTION=1w
|
|
# # (optional) Admin Token
|
|
# - DOCKER_INFLUXDB_INIT_ADMIN_TOKEN=my-super-secret-auth-token
|
|
# # (optional) Configure TLS
|
|
# command: influxd --tls-cert=/etc/ssl/cert.pem --tls-key=/etc/ssl/cert-key.pem |