Add Postgres Docker service wrapper

This commit is contained in:
Disassembler 2017-12-16 20:40:40 +01:00
parent 7eddaeda5e
commit 678f91b555

View File

@ -0,0 +1,11 @@
[Unit]
Description=PostgreSQL + PostGIS Docker container
After=network.target
[Service]
Type=simple
ExecStart=/usr/bin/docker run --rm --name postgres -v /srv/postgres:/var/lib/postgresql postgres
ExecStop=/usr/bin/docker stop postgres
[Install]
WantedBy=multi-user.target