Add Postgres Docker service wrapper
This commit is contained in:
parent
7eddaeda5e
commit
678f91b555
11
postgres/lib/systemd/system/postgres.service
Normal file
11
postgres/lib/systemd/system/postgres.service
Normal 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
|
Loading…
Reference in New Issue
Block a user