This commit is contained in:
cpu
2025-03-28 20:46:11 +01:00
parent 43cf8801a0
commit 1a241e5355
2 changed files with 6 additions and 6 deletions

View File

@@ -6,9 +6,11 @@ Dockerfile
.gitignore .gitignore
README.md README.md
*.example *.example
images
.env .env
env env
labels labels
subscriptions.json subscriptions.json

View File

@@ -7,20 +7,18 @@ DefaultDependencies=no
[Service] [Service]
Type=simple Type=simple
Environment="HOME=/root" 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 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 '/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 \ ExecStart=/usr/bin/env docker run \
--rm \ --rm \
--name=virt-flic-webhook-webpush \ --name=virt-flic-webhook-webpush \
--log-driver=none \ --log-driver=none \
--network=traefik \ --network=traefik \
--env-file=${APP_PATH}/env \ --env-file=/virt/flic-webhook-webpush/env \
--label-file=${APP_PATH}/labels \ --label-file=/virt/flic-webhook-webpush/labels \
--mount type=bind,src=${APP_PATH}/subscriptions.json,dst=/app/subscriptions.json \ --mount type=bind,src=/virt/flic-webhook-webpush/subscriptions.json,dst=/app/subscriptions.json \
flic-webhook-webpush flic-webhook-webpush
ExecStop=-/usr/bin/env sh -c '/usr/bin/env docker kill virt-flic-webhook-webpush 2>/dev/null || true' ExecStop=-/usr/bin/env sh -c '/usr/bin/env docker kill virt-flic-webhook-webpush 2>/dev/null || true'