This is a guide on how to run Museum as a systemd server without docker's intervention.
Below is the systemd.service content copy paste this into /etc/systemd/system/
directory inside a new .service
file.
[Unit]
Description=Running Museum as a background service.
[Service]
Type=simple
Restart=always
WorkingDirectory=/path/to/ente/server
Environment=GO111MODULE=on
Environment=GOPATH=/path/to/gopath
Environment=GOCACHE=/path/to/go-cache/
Environment=GOMODCACHE=/path/to/go-mod-cache
Environment=ENTE_DB_USER=postgres
ExecStart=go run cmd/museum/main.go
[Install]
WantedBy=multi-user.target
Please change the path in the above Environment variables accordingly, you can find the exact path's by executing go env
in your terminal.
And you're good to go by executing
sudo systemctl daemon-reload && sudo systemctl enable museum.service