diff --git a/.dockerignore b/.dockerignore index cd67c24..06749c9 100644 --- a/.dockerignore +++ b/.dockerignore @@ -6,9 +6,11 @@ Dockerfile .gitignore README.md *.example +images .env env labels subscriptions.json + diff --git a/virt-flic-webhook-webpush.service.example b/virt-flic-webhook-webpush.service.example index 6b8d902..4bc8444 100644 --- a/virt-flic-webhook-webpush.service.example +++ b/virt-flic-webhook-webpush.service.example @@ -7,20 +7,18 @@ DefaultDependencies=no [Service] Type=simple Environment="HOME=/root" -Environment="APP_PATH=/virt/flic-webhook-webpush" - ExecStartPre=-/usr/bin/env sh -c '/usr/bin/env docker kill virt-flic-webhook-webpush 2>/dev/null || true' ExecStartPre=-/usr/bin/env sh -c '/usr/bin/env docker rm virt-flic-webhook-webpush 2>/dev/null || true' -ExecStartPre=/usr/bin/env sh -c 'touch ${APP_PATH}/subscriptions.json' +ExecStartPre=/usr/bin/env sh -c 'touch /virt/flic-webhook-webpush/subscriptions.json' ExecStart=/usr/bin/env docker run \ --rm \ --name=virt-flic-webhook-webpush \ --log-driver=none \ --network=traefik \ - --env-file=${APP_PATH}/env \ - --label-file=${APP_PATH}/labels \ - --mount type=bind,src=${APP_PATH}/subscriptions.json,dst=/app/subscriptions.json \ + --env-file=/virt/flic-webhook-webpush/env \ + --label-file=/virt/flic-webhook-webpush/labels \ + --mount type=bind,src=/virt/flic-webhook-webpush/subscriptions.json,dst=/app/subscriptions.json \ flic-webhook-webpush ExecStop=-/usr/bin/env sh -c '/usr/bin/env docker kill virt-flic-webhook-webpush 2>/dev/null || true'