From 2710feb490b99c45b0c9731ad1e6d27398e577ca Mon Sep 17 00:00:00 2001 From: shim_ <> Date: Sun, 9 Sep 2018 23:41:01 +0200 Subject: [PATCH] include all options [CI SKIP] --- seafile.service | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/seafile.service b/seafile.service index 7eca479..d29f5ee 100644 --- a/seafile.service +++ b/seafile.service @@ -9,13 +9,16 @@ CPUShares=256 MemoryLimit=512M Environment=ROOT_DIR=/srv/seafile +Environment=SEAF_MYSQL="" #Empty = Sqlite +Environment=SEAF_URL="https://seaf.example.com" +Environment=SEAF_UPGRADE_INTERVAL=10 #Run first once to setup -#rkt --insecure-options=image run --dns 8.8.8.8 --volume volume-opt-seafile,kind=host,source=${ROOT_DIR} docker://repo.shimun.net/shimun/seafile --interactive +#rkt --insecure-options=image run --dns 8.8.8.8 --volume volume-opt-seafile,kind=host,source=${ROOT_DIR} docker://repo.shimun.net/shimun/seafile --environment=SEAF_URL="https://seaf.example.com" --interactive ExecStartPre=/bin/mkdir -p ${ROOT_DIR} -ExecStart=/usr/bin/rkt --insecure-options=image run --dns 8.8.8.8 --volume volume-opt-seafile,kind=host,source=${ROOT_DIR} --port 80-tcp:8080 \ - docker://repo.shimun.net/shimun/seafile +ExecStart=/usr/bin/rkt --insecure-options=image run --dns 8.8.8.8 --inherit-env --volume volume-opt-seafile,kind=host,source=${ROOT_DIR} --port 80-tcp:8080 \ + docker://repo.shimun.net/shimun/seafile --environment=SEAF_UPGRADE_INTERVAL=${SEAF_UPGRADE_INTERVAL} ExecStopPost=/usr/bin/rkt gc KillMode=mixed