ansible/roles/container-saucy/files/unit.service
Hugo Peixoto 4c05a03f93 Refaz o saucy
Em vez de usar o comminuty module cenas para docker, usa systemd para
gerir os jobs e env files normais.

Aproveita e renomeia um dos yaml para yml.
2022-10-02 00:10:14 +01:00

13 lines
380 B
Desktop File

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