Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [Unit]
- Description=Hompepage dashboard as a Systemd Service
- Documentation=https://github.com/gethomepage/homepage
- StartLimitIntervalSec=300
- StartLimitBurst=5
- After=network.target
- [Service]
- Type=simple
- User=docker1
- Group=dockerdata
- # enable production environment once homepage is ready for it
- #Environment="NODE_ENV=production"
- # specify port with variable PORT=3000 or parameter -p 3000
- Environment="PORT=3000"
- # when developing and tracking issues, do logging with debug level
- # by setting LOG_LEVEL=debug
- #Environment="LOG_LEVEL=debug"
- EnvironmentFile=/home/docker1/services/homepage/config/environment.conf
- WorkingDirectory=/home/docker1/services/homepage
- ExecStart=/usr/bin/npm start --prefix /home/docker1/services/homepage
- Restart=on-failure
- RestartSec=1s
- StandardOutput=/home/docker1/services/homepage/config/logs/sdout.log
- StandardError=/home/docker1/services/homepage/config/logs/sderr.log
- [Install]
- WantedBy=multi-user.target
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement