christianlempa-boilerplates/docker-compose/influxdb/docker-compose.yml

28 lines
1014 B
YAML
Raw Normal View History

2022-01-02 12:37:45 +01:00
version: '3'
services:
influxdb:
container_name: influxdb
image: influxdb:2.1-alpine
ports:
- '8086:8086'
volumes:
- influxdb-data:/var/lib/influxdb2
2022-01-03 16:03:31 +01:00
- /etc/influxdb2:/etc/influxdb2
2022-01-04 15:45:48 +01:00
# # (optional) If you're using self-signed certs
# - /etc/ssl/cert.pem/:/etc/ssl/cert.pem
# - /etc/ssl/cert-key.pem/:/etc/ssl/cert-key.pem
2022-01-02 12:37:45 +01:00
# # Automatically setup influxdb
2022-01-02 13:17:26 +01:00
# TODO: no tested...
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
# # (optional) Configure Data Retention
# - DOCKER_INFLUXDB_INIT_RETENTION=1w
# # (optional) Admin Token
# - DOCKER_INFLUXDB_INIT_ADMIN_TOKEN=my-super-secret-auth-token
2022-01-04 15:45:48 +01:00
# # (optional) If you're using self-signed certs
2022-01-02 12:37:45 +01:00
# command: influxd --tls-cert=/etc/ssl/cert.pem --tls-key=/etc/ssl/cert-key.pem