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