14 lines
390 B
Desktop File
14 lines
390 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 --name postgres --env-file /srv/postgres/env -v /srv/postgres/data:/var/lib/postgresql/data -p5432:5432 postgres:latest
|
|
ExecStop=/usr/bin/docker stop postgres
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target default.target
|