summaryrefslogtreecommitdiffstats
path: root/devops/gallifrey.service
diff options
context:
space:
mode:
authorAdrian Batos-Parac <adrian.batos-parac@amdocs.com>2018-02-22 15:50:01 -0500
committerAdrian Batos-Parac <adrian.batos-parac@amdocs.com>2018-02-22 15:50:01 -0500
commitd6a36b1577b3220f7822ae655d57fa6a1dded5a6 (patch)
tree0adf5d8b2f65b0fc6129a42c3fd0309bff9d8700 /devops/gallifrey.service
parent030236e7268ca08aeae13acec04e3efc2687b2e6 (diff)
Initial Commit of Gallifrey
Commit the initial set of code for the Gallifrey offering to ONAP Change-Id: Id1d3bd2bda5ab530682b6646f2cb0414baf671a5 Issue-ID: AAI-797 Signed-off-by: abatos <adrian.batos-parac@amdocs.com>
Diffstat (limited to 'devops/gallifrey.service')
-rw-r--r--devops/gallifrey.service13
1 files changed, 13 insertions, 0 deletions
diff --git a/devops/gallifrey.service b/devops/gallifrey.service
new file mode 100644
index 0000000..43b3404
--- /dev/null
+++ b/devops/gallifrey.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=Gallifrey container
+After=docker.socket early-docker.target network.target network-online.target
+Wants=network-online.target
+BindsTo=docker.service
+
+[Service]
+Restart=always
+ExecStart=/usr/bin/docker-compose -f /opt/gallifrey/docker-compose.yml -p gallifrey up
+ExecStop=/usr/bin/docker-compose -f /opt/gallifrey/docker-compose.yml -p gallifrey down
+
+[Install]
+WantedBy=multi-user.target