feat(devops): services example

This commit is contained in:
Leandro Farias Machado 2023-05-29 07:54:26 -03:00
parent 976612057a
commit 6d7946642b
2 changed files with 22 additions and 0 deletions

11
devops/controller.service Normal file
View File

@ -0,0 +1,11 @@
[Unit]
Description=TR-369 Controller
[Service]
ExecStart=/usr/bin/controller -u 'root' -P '<password to broker>' -mongo '<mongoDB address>' -p 8883 -tls
Restart=always
RestartSec=4
[Install]
WantedBy=multi-user.target

11
devops/mochi.service Normal file
View File

@ -0,0 +1,11 @@
[Unit]
Description=Mochi broker
[Service]
ExecStart=/usr/bin/mochi -path /home/ec2-user/oktopus/backend/services/mochi/cmd/auth.prod.json -full_chain_path /etc/letsencrypt/live/oktopus.ifsc.digital/fullchain.pem -private_key_path /etc/letsencrypt/live/oktopus.ifsc.digital/privkey.pem -redis ""
Restart=always
RestartSec=4
[Install]
WantedBy=multi-user.target