ansible/roles/container-saucy/files/unit.service

14 lines
412 B
SYSTEMD
Raw Normal View History

[Unit]
Description=Container running saucy
Wants=network.target
After=network-online.target container-postgres.service
[Service]
Restart=on-failure
TimeoutStopSec=70
2022-10-02 12:16:47 +00:00
ExecStart=/usr/bin/docker run --pull=always --rm --name saucy --env-file /srv/saucy/env -v /srv/saucy/data:/data -p80:3000 git.ansol.org/ansol/saucy:latest
ExecStop=/usr/bin/docker stop saucy
[Install]
WantedBy=multi-user.target default.target