2022-01-02 12:37:45 +01:00
|
|
|
version: '3'
|
|
|
|
|
2022-08-30 10:58:39 +02:00
|
|
|
volumes:
|
|
|
|
influxdb-data:
|
|
|
|
|
2022-01-02 12:37:45 +01:00
|
|
|
services:
|
|
|
|
influxdb:
|
|
|
|
container_name: influxdb
|
|
|
|
image: influxdb:2.1-alpine
|
|
|
|
ports:
|
|
|
|
- '8086:8086'
|
|
|
|
volumes:
|
|
|
|
- influxdb-data:/var/lib/influxdb2
|
2022-08-30 11:19:29 +02:00
|
|
|
- /etc/influxdb2:/etc/influxdb2
|
2022-08-30 10:58:39 +02:00
|
|
|
|
|
|
|
# (Optional) If you're using self-signed certs
|
2022-01-04 15:45:48 +01:00
|
|
|
# - /etc/ssl/cert.pem/:/etc/ssl/cert.pem
|
|
|
|
# - /etc/ssl/cert-key.pem/:/etc/ssl/cert-key.pem
|
2022-08-30 10:58:39 +02:00
|
|
|
# (Optional) If you're using self-signed certs
|
|
|
|
# command: influxd --tls-cert=/etc/ssl/cert.pem --tls-key=/etc/ssl/cert-key.pem
|
|
|
|
|
|
|
|
# (Optional) Automatic Setup
|
2022-01-02 12:37:45 +01:00
|
|
|
# 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
|
2022-08-30 10:58:39 +02:00
|
|
|
# # (Optional) Configure Data Retention
|
2022-01-02 12:37:45 +01:00
|
|
|
# - DOCKER_INFLUXDB_INIT_RETENTION=1w
|
2022-08-30 10:58:39 +02:00
|
|
|
# # (Optional) Admin Token
|
2022-01-02 12:37:45 +01:00
|
|
|
# - DOCKER_INFLUXDB_INIT_ADMIN_TOKEN=my-super-secret-auth-token
|