sudo nano /etc/systemd/system/my_app.service
The content of my_app.service file:
[Unit]
Description=Springboot app for BLABLA (test-env)
After=syslog.target network.target
sudo apt install postgresql
sudo -u postgres psql template1
ALTER USER postgres with encrypted password 'my_passwordy';
\q