Skip to content

Commit 7a077cd

Browse files
authored
Merge pull request #567 from Paraphraser/20220602-influxdb2-master
20220602 InfluxDB 2 - master branch - PR 1 of 3
2 parents 732889a + 3239e9b commit 7a077cd

File tree

8 files changed

+614
-0
lines changed

8 files changed

+614
-0
lines changed

.templates/influxdb2/service.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
influxdb2:
2+
container_name: influxdb2
3+
image: "influxdb:latest"
4+
restart: unless-stopped
5+
environment:
6+
- TZ=Etc/UTC
7+
- DOCKER_INFLUXDB_INIT_USERNAME=me
8+
- DOCKER_INFLUXDB_INIT_PASSWORD=mypassword
9+
- DOCKER_INFLUXDB_INIT_ORG=myorg
10+
- DOCKER_INFLUXDB_INIT_BUCKET=mybucket
11+
- DOCKER_INFLUXDB_INIT_ADMIN_TOKEN=my-super-secret-auth-token
12+
- DOCKER_INFLUXDB_INIT_MODE=setup
13+
# - DOCKER_INFLUXDB_INIT_MODE=upgrade
14+
ports:
15+
- "8087:8086"
16+
volumes:
17+
- ./volumes/influxdb2/data:/var/lib/influxdb2
18+
- ./volumes/influxdb2/config:/etc/influxdb2
19+
- ./volumes/influxdb2/backup:/var/lib/backup
20+
# - ./volumes/influxdb.migrate/data:/var/lib/influxdb:ro
21+
healthcheck:
22+
test: ["CMD", "influx", "ping"]
23+
interval: 30s
24+
timeout: 10s
25+
retries: 3
26+
start_period: 30s

0 commit comments

Comments
 (0)