Adds systemd service to start docker compose

This commit is contained in:
Abhinav Sarkar 2018-06-13 16:24:03 +00:00
parent e83ffaa75a
commit afd619c73f

20
space.service Normal file
View File

@ -0,0 +1,20 @@
[Unit]
Description=Space service
Requires=docker.service
After=docker.service
[Service]
Environment="PG_PASSWORD="
Environment="WB_PASSWORD="
Environment="PH_PASSWORD="
Environment="PH_SERVER_IP="
Environment="GT_SECRET_KEY="
Type=oneshot
RemainAfterExit=yes
WorkingDirectory=/home/abhinav/space
ExecStart=/usr/bin/docker-compose up -d
ExecStop=/usr/bin/docker-compose stop
TimeoutStartSec=0
[Install]
WantedBy=multi-user.target