Skip to content

Commit ce74cbf

Browse files
committed
unexisting mount device
1 parent e2a06d2 commit ce74cbf

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

docker-compose.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ services:
99
# privileged added so usb drive can be mounted.
1010
privileged: true
1111
volumes:
12+
# take care that the mount location "/mnt/influxdb" becomes overwritten
13+
# by the mount location specified in the influxdb Dockerfile.
1214
- 'influxdb-data:/mnt/influxdb'
1315
ports:
1416
# The API for InfluxDB is served on port 8086

influxdb/Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
FROM arm32v7/influxdb:latest
22

33
# The following instruction defines the mount location where the influxdb data should be stored.
4-
RUN echo "LABEL=influxdb /mnt/influxdb ext4 rw,relatime,discard,data=ordered 0 2" >> /etc/fstab
4+
# In this case it is referring to an USB memory stick with label "influxdb" that is formatted in "ext4" format.
5+
# If there is no such USB drive connected to the device then the named volume specified in the
6+
# docker compose will be used.
7+
#
8+
RUN echo "LABEL=influxdb2 /mnt/influxdb ext4 rw,relatime,discard,data=ordered 0 2" >> /etc/fstab
59

610
# The script "my_entrypoint.sh" is an extension of the existing script with extra instructions to mount the usb memory stick.
711
COPY my_entrypoint.sh /entrypoint.sh

0 commit comments

Comments
 (0)