Refactoring the structure of our images
[people/jschlag/pbs-docker.git] / src / pbs-hub / pbs-hub.service
1 [Unit]
2 Description=Pakfire Build Service - Hub
3 Requires=docker.service
4 After=docker.service
5 [Service]
6 Environment=GIT_REPO=/root/pbs
7 ExecStartPre=-/usr/bin/docker stop pbs-hub
8 ExecStartPre=-/usr/bin/docker rm pbs-hub
9 ExecStartPre=-/usr/bin/docker pull jonatanschlag/ipfire-pbs-hub:latest
10 ExecStart=/usr/bin/docker run -p 80:80 --mount type=bind,source="${GIT_REPO}",target=/opt/pbs --name=pbs-hub jonatanschlag/ipfire-pbs-hub:latest
11 ExecStop=/usr/bin/docker stop pbs-hub
12
13 [Install]
14 WantedBy=multi-user.target