mirror of
https://gitlab.sectorq.eu/home/docker-compose.git
synced 2025-12-14 18:34:53 +01:00
build
This commit is contained in:
3
__swarm/influxdb/.env
Executable file
3
__swarm/influxdb/.env
Executable file
@@ -0,0 +1,3 @@
|
||||
APPNAME=influxdb
|
||||
DOCKER_REGISTRY=r.sectorq.eu/library/
|
||||
RESTART=always
|
||||
1
__swarm/influxdb/.env.influxdb2-admin-password
Normal file
1
__swarm/influxdb/.env.influxdb2-admin-password
Normal file
@@ -0,0 +1 @@
|
||||
ha
|
||||
1
__swarm/influxdb/.env.influxdb2-admin-token
Normal file
1
__swarm/influxdb/.env.influxdb2-admin-token
Normal file
@@ -0,0 +1 @@
|
||||
l4c1j4yd33Du5lo
|
||||
1
__swarm/influxdb/.env.influxdb2-admin-username
Normal file
1
__swarm/influxdb/.env.influxdb2-admin-username
Normal file
@@ -0,0 +1 @@
|
||||
ha
|
||||
37
__swarm/influxdb/docker-compose.yml
Executable file
37
__swarm/influxdb/docker-compose.yml
Executable file
@@ -0,0 +1,37 @@
|
||||
version: '3'
|
||||
services:
|
||||
influxdb:
|
||||
ports:
|
||||
- 8087:8086
|
||||
volumes:
|
||||
- /share/docker_data/influxdb2/data:/var/lib/influxdb2
|
||||
- /share/docker_data/influxdb2/config:/etc/influxdb2
|
||||
secrets:
|
||||
- influxdb2-admin-username
|
||||
- influxdb2-admin-password
|
||||
- influxdb2-admin-token
|
||||
environment:
|
||||
- DOCKER_INFLUXDB_INIT_MODE=setup
|
||||
- DOCKER_INFLUXDB_INIT_USERNAME=ha
|
||||
- DOCKER_INFLUXDB_INIT_PASSWORD=haHAhaHA
|
||||
- DOCKER_INFLUXDB_INIT_ORG=ha
|
||||
- DOCKER_INFLUXDB_INIT_BUCKET=ha
|
||||
- DOCKER_INFLUXDB_INIT_ADMIN_TOKEN_FILE=/run/secrets/influxdb2-admin-token
|
||||
image: ${DOCKER_REGISTRY:-}influxdb:2
|
||||
restart: ${RESTART:-unless-stopped}
|
||||
healthcheck:
|
||||
test: "echo test > /var/lib/influxdb2/hc || exit 1"
|
||||
interval: 10s
|
||||
timeout: 3s
|
||||
retries: 2
|
||||
labels:
|
||||
com.centurylinklabs.watchtower.enable: true
|
||||
wud.watch: true
|
||||
wud.watch.digest: true
|
||||
secrets:
|
||||
influxdb2-admin-username:
|
||||
file: .env.influxdb2-admin-username
|
||||
influxdb2-admin-password:
|
||||
file: .env.influxdb2-admin-password
|
||||
influxdb2-admin-token:
|
||||
file: .env.influxdb2-admin-token
|
||||
Reference in New Issue
Block a user