diff --git a/seafile_sync/Dockerfile b/seafile_sync/Dockerfile index 5dc49fd..83fb777 100644 --- a/seafile_sync/Dockerfile +++ b/seafile_sync/Dockerfile @@ -1,10 +1,32 @@ # https://gitlab.com/flwgns-docker/seafile-client/ + + +FROM debian:buster-slim + +#RUN ln -s /config /library \ +# && ln -s /data/seafuser /home/seafuser + FROM flowgunso/seafile-client:latest +#RUN mkdir /library \ +# && ln -s /config /library ENV \ - SEAF_SERVER_URL="SERVER_URL" \ - SEAF_USERNAME="USERNAME" \ - SEAF_PASSWORD="PASSWORD" \ - SEAF_LIBRARY_UUID="LIBRARY_UUID" \ - SEAF_SKIP_SSL_CERT="SKIP_SSL_CERT" + SEAF_SERVER_URL="${SERVER_URL}" \ + SEAF_USERNAME="${USERNAME}" \ + SEAF_PASSWORD="${PASSWORD}" \ + SEAF_LIBRARY_UUID="${LIBRARY_UUID}" \ + SEAF_SKIP_SSL_CERT="${SKIP_SSL_CERT}" +# MOFIFY DATA PATH +RUN sed -i "s|library|config|g" /etc/services.d/seafile/run + +RUN sed -i "s|/home/seafuser|/data/seafuser|g" /etc/services.d/seafile/run + +VOLUME [ "/data" ] +VOLUME [ "/config" ] +#RUN mkdir /config +#RUN mkdir /library + + + + diff --git a/seafile_sync/config.yaml b/seafile_sync/config.yaml index 069df0f..43fd223 100644 --- a/seafile_sync/config.yaml +++ b/seafile_sync/config.yaml @@ -1,6 +1,6 @@ name: "Seafile sync" description: "My first real add-on!" -version: "0.0.03" +version: "0.0.01e" slug: "seafile_test" url: https://git.lermer.nl/Mathijs/Hass-addons/src/branch/main/seafile_sync init: false @@ -9,7 +9,11 @@ startup: application arch: - amd64 map: - - "config:/library:ro" + - backup:ro + - config:ro + - media:rw + - share:rw +# - ssl:ro host_network: true options: SERVER_URL: https://example.com @@ -24,5 +28,5 @@ schema: LIBRARY_UUID: password SKIP_SSL_CERT: str -#volumes: -# - /config:/library:ro \ No newline at end of file +volumes: + - /mnt/data/supervisor/homeassistant:/library:ro \ No newline at end of file