dockerfiles/dev/drone/drone-db.service

15 lines
363 B
SYSTEMD
Raw Normal View History

2015-03-26 07:00:43 +00:00
[Unit]
Description=Drone.io continunous integration and delivery database
After=docker.service
Requires=docker.service
[Service]
TimeoutStartSec=0
ExecStartPre=-/usr/bin/docker kill dronedb
ExecStartPre=/usr/bin/docker pull postgres
ExecStart=/usr/bin/docker run --name drone-db postgres
ExecStop=/usr/bin/docker kill drone
[Install]
WantedBy=multi-user.target