Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Separate data and config directories #69

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DA
LABEL maintainer="thelamer"

# environment settings
ENV HOME="/config"
ENV HOME="/data"

RUN \
echo "**** create var lib folder ****" && \
Expand All @@ -57,3 +57,4 @@ COPY root/ /
# ports and volumes
EXPOSE 8384 22000/tcp 22000/udp 21027/UDP
VOLUME /config
VOLUME /data
3 changes: 2 additions & 1 deletion Dockerfile.aarch64
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DA
LABEL maintainer="thelamer"

# environment settings
ENV HOME="/config"
ENV HOME="/data"

RUN \
echo "**** create var lib folder ****" && \
Expand All @@ -57,3 +57,4 @@ COPY root/ /
# ports and volumes
EXPOSE 8384 22000/tcp 22000/udp 21027/UDP
VOLUME /config
VOLUME /data
4 changes: 2 additions & 2 deletions readme-vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ param_env_vars:
param_usage_include_vols: true
param_volumes:
- {vol_path: "/config", vol_host_path: "/path/to/appdata/config", desc: "Configuration files."}
- {vol_path: "/data1", vol_host_path: "/path/to/data1", desc: "Data1"}
- {vol_path: "/data2", vol_host_path: "/path/to/data2", desc: "Data2"}
- {vol_path: "/data", vol_host_path: "/path/to/data", desc: "Dedicated data directory"}
param_usage_include_ports: true
param_ports:
- {external_port: "8384", internal_port: "8384", port_desc: "Application WebUI"}
Expand All @@ -35,6 +34,7 @@ app_setup_block_enabled: true
app_setup_block: "**Note: ** The Syncthing devs highly suggest setting a password for this container as it listens on 0.0.0.0. To do this go to `Actions -> Settings -> set user/password` for the webUI."
# changelog
changelogs:
- {date: "10.12.23:", desc: "Add a dedicated data directory volume"}
- {date: "05.09.23:", desc: "Rebase to Alpine 3.18."}
- {date: "01.07.23:", desc: "Deprecate armhf. As announced [here](https://www.linuxserver.io/blog/a-farewell-to-arm-hf)"}
- {date: "13.02.23:", desc: "Rebase to Alpine 3.17, migrate to s6v3."}
Expand Down
6 changes: 3 additions & 3 deletions root/etc/s6-overlay/s6-rc.d/svc-syncthing/run
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@

exec \
s6-notifyoncheck -d -n 300 -w 1000 -c "nc -z localhost 8384" \
s6-setuidgid abc syncthing \
-home=/config -no-browser -no-restart \
--gui-address="0.0.0.0:8384"
s6-setuidgid abc syncthing --config=/config --data=/data \
--no-browser --no-restart --gui-address="0.0.0.0:8384" \
--no-default-folder