aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2016-03-24 17:28:10 +0100
committerDimitri Sokolyuk <demon@dim13.org>2016-03-24 17:28:10 +0100
commit17b0a372a3d59de5dc8f6a59c7268a3846d88515 (patch)
tree4650129fe2ab4708a12e4a0911df72ad49ebfb15 /Makefile
parentc710d8f7a96dbbb6d42a4afc96719216f766c833 (diff)
Add restart policy
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 1d50e56..2b63d94 100644
--- a/Makefile
+++ b/Makefile
@@ -21,6 +21,6 @@ stop:
start:
docker run -d -v ${APP}:/go/src/dim13.org/goxy/data \
-p ${IP}:80:80 -p ${IP}:443:443 -p ${IP}:8080:8080 \
- --name ${APP} --net ${APP} ${TAG}
+ --name ${APP} --net ${APP} --restart unless-stopped ${TAG}
restart: stop start