Deploy godoor from Docker image
This commit is contained in:
parent
9b2631f16c
commit
bec78de2f3
@ -41,17 +41,19 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=Doorboy service
|
Description=Doorboy service
|
||||||
Documentation=https://git.k-space.ee/k-space/godoor
|
Documentation=https://git.k-space.ee/k-space/godoor
|
||||||
|
After=network.target
|
||||||
[Service]
|
[Service]
|
||||||
EnvironmentFile=/etc/godoor
|
Environment=IMAGE=harbor.k-space.ee/k-space/godoor:latest
|
||||||
Environment=KDOORPI_API_ALLOWED=https://doorboy-proxy.k-space.ee/allowed
|
ExecStartPre=-ctr task kill --signal=9 %N
|
||||||
Environment=KDOORPI_API_LONGPOLL=https://doorboy-proxy.k-space.ee/longpoll
|
ExecStartPre=-ctr task rm %N
|
||||||
Environment=KDOORPI_API_SWIPE=https://inventory.k-space.ee/swipes
|
ExecStartPre=-ctr c rm %N
|
||||||
Environment=KDOORPI_DOOR=%H
|
ExecStartPre=ctr image pull $IMAGE
|
||||||
ExecStart=/usr/local/bin/godoor
|
ExecStart=ctr run --rm --pid-file=/run/%N.pid --privileged --read-only --env-file=/etc/godoor --env=KDOORPI_API_ALLOWED=https://doorboy-proxy.k-space.ee/allowed --env=KDOORPI_API_LONGPOLL=https://doorboy-proxy.k-space.ee/longpoll --env=KDOORPI_API_SWIPE=https://doorboy-proxy.k-space.ee/swipe --env=KDOORPI_DOOR=%H --net-host --net-host --cwd /app $IMAGE %N /godoor
|
||||||
User=root
|
ExecStopPost=ctr task rm %N
|
||||||
Restart=always
|
ExecStopPost=ctr c rm %N
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
Restart=always
|
||||||
- name: Enable Doorboy controller
|
- name: Enable Doorboy controller
|
||||||
ansible.builtin.systemd:
|
ansible.builtin.systemd:
|
||||||
state: restarted
|
state: restarted
|
||||||
|
Loading…
Reference in New Issue
Block a user