mirror of
https://github.com/deuill/coreos-home-server.git
synced 2024-09-21 21:50:46 +00:00
Alex Palaistras
a6416f9ea6
This commit integrates WriteFreely as a systemd service, set up as a single-user instance by default (as is probably appropriate for a home-server setup); a default administrator is set up, and whoever is managing the home-server is expected to update the username and password after first login. Though WriteFreely expects to have a hostname set up for the instance, we do not listen on any specific hostname by default. It is expected, rather, that the `nginx-proxy-http` service is used with a drop-in for using the correct `writefreely` upstream. Configuration for this will continue to evolve as required.
21 lines
683 B
Desktop File
21 lines
683 B
Desktop File
[Unit]
|
|
Description=WriteFreely Federated Writing Application
|
|
Wants=container-build@%N.service container-volume@%N.service
|
|
After=container-build@%N.service container-volume@%N.service
|
|
|
|
[Service]
|
|
Type=notify
|
|
NotifyAccess=all
|
|
SyslogIdentifier=%N
|
|
Restart=on-failure
|
|
Environment=PODMAN_SYSTEMD_UNIT=%n
|
|
ExecStart=/bin/podman run --replace --name %N --net internal --sdnotify=conmon \
|
|
--env-file %E/coreos-home-server/%N/%N.env \
|
|
--volume %N:/var/lib/%N:z \
|
|
localhost/%N:latest
|
|
ExecStop=/bin/podman stop --ignore --time 10 %N
|
|
ExecStopPost=/bin/podman rm --ignore --force %N
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|