chessh/buildscripts/build/chessh.service

20 lines
511 B
SYSTEMD
Raw Normal View History

2023-01-31 17:59:33 -05:00
[Unit]
Description=CheSSH Server
After=docker.service
BindsTo=docker.service
ReloadPropagatedFrom=docker.service
WantedBy=default.target
[Service]
Restart=always
ExecStartPre=-/usr/bin/docker stop chessh-server
ExecStartPre=-/usr/bin/docker rm chessh-server
ExecStart=/usr/bin/docker run \
--env-file $BUILD_ENV \
--network=host \
--name chessh-server \
chessh/server
[Install]
WantedBy=multi-user.target