ansible/roles/container-postgres/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
355 B
Desktop File

[Unit]
Description=Container running postgres
Wants=network.target
After=network-online.target
[Service]
Restart=on-failure
TimeoutStopSec=70
ExecStart=/usr/bin/docker run --rm -it --name postgres --env-file /srv/postgres/env -v /srv/postgres/data:/var/lib/postgresql/data -p5432:5432 postgres:latest
[Install]
WantedBy=multi-user.target default.target