wrong sym links

This commit is contained in:
ElevenNotes
2023-06-22 09:08:57 +02:00
parent 111f7f8203
commit 729de8f9bc
3 changed files with 15 additions and 5 deletions

View File

@@ -1,10 +1,14 @@
# Alpine :: InfluxDB
Run InfluxDB based on Alpine Linux. Small, lightweight, secure and fast 🏔️
## Volumes
* **/influxdb/etc** - Directory of config.yml
* **/influxdb/var** - Directory of all mutable data
## Run
```shell
docker run --name influxdb \
-v .../etc:/influxdb/etc \
-v .../etc/config.yml:/influxdb/etc/config.yml \
-v .../var:/influxdb/var \
-d 11notes/influxdb:[tag]
```

View File

@@ -17,8 +17,10 @@
# :: prepare image
RUN set -ex; \
mkdir -p ${APP_ROOT}; \
ln -s /etc/influxdb2 ${APP_ROOT}/etc; \
ln -s /var/lib/influxdb2 ${APP_ROOT}/var; \
mkdir -p ${APP_ROOT}/etc; \
mkdir -p ${APP_ROOT}/var; \
rm -f /etc/defaults/influxdb2/config.yml; \
ln -s ${APP_ROOT}/etc/config.yml /etc/defaults/influxdb2/config.yml; \
mv /entrypoint.sh /usr/local/bin;
# :: copy root filesystem changes and add execution rights to init scripts
@@ -34,10 +36,11 @@
chown -R 1000:1000 \
${APP_ROOT} \
/etc/influxdb2 \
/var/lib/influxdb2;
/var/lib/influxdb2 \
/etc/defaults/influxdb2;
# :: Volumes
VOLUME ["${APP_ROOT}/etc", "${APP_ROOT}/var"]
VOLUME ["${APP_ROOT}/var"]
# :: Monitor
HEALTHCHECK CMD /usr/local/bin/healthcheck.sh || exit 1

View File

@@ -0,0 +1,3 @@
bolt-path: /influxdb/var/influxd.bolt
engine-path: /influxdb/var/engine
nats-port: 4222