Greg Karékinian 429b609ac2 Initial kosmos_discourse cookbook
The systemd unit does not work

Refs #222
2020-10-20 12:21:53 +02:00

24 lines
493 B
Plaintext

[Unit]
Description=discourse service with docker compose
Requires=docker.service
After=docker.service
[Service]
Restart=always
WorkingDirectory=<%= @deploy_path %>
Environment="SUPERVISED=true"
ExecStartPre=<%= @deploy_path %>/launcher stop app
# Remove all containers that have stopped for > 24 hours
ExecStartPre=<%= @deploy_path %>/launcher cleanup
ExecStart=<%= @deploy_path %>/launcher start app
ExecStop=<%= @deploy_path %>/launcher stop app
[Install]
WantedBy=multi-user.target