aboutsummaryrefslogtreecommitdiffstats
path: root/devops/chameleon.service
diff options
context:
space:
mode:
Diffstat (limited to 'devops/chameleon.service')
-rw-r--r--devops/chameleon.service13
1 files changed, 13 insertions, 0 deletions
diff --git a/devops/chameleon.service b/devops/chameleon.service
new file mode 100644
index 0000000..0c4b937
--- /dev/null
+++ b/devops/chameleon.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=Chameleon 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/chameleon/docker-compose.yml -p chameleon up
+ExecStop=/usr/bin/docker-compose -f /opt/chameleon/docker-compose.yml -p chameleon down
+
+[Install]
+WantedBy=multi-user.target