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