Skip to content

Commit 78652ab

Browse files
committed
-
1 parent dfba652 commit 78652ab

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

docker-compose.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ services:
88
build: influxdb
99
# privileged added so usb drive can be mounted.
1010
privileged: true
11-
environment:
12-
- INFLUXDB_DATA_FSTAB = "LABEL=influxdb /mnt/usbdrive ext4 rw,relatime,discard,data=ordered 0 2"
1311
volumes:
1412
- 'influxdb-data:/mnt/usbdrive'
1513
ports:

influxdb/Dockerfile

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

3-
RUN echo "LABEL=influxdb /mnt/usbdrive ext4 rw,relatime,discard,data=ordered 0 2" >> /etc/fstab
3+
RUN echo "LABEL=influxdb2 /mnt/usbdrive ext4 rw,relatime,discard,data=ordered 0 2" >> /etc/fstab
44

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

0 commit comments

Comments
 (0)