#!/bin/bash # Copy this file to /usr/sbin/start to enable easy startup # sudo cp start.sh /usr/sbin/start #docker stack deploy -c compose.yml ${PWD##*/} if [ -f ".env" ]; then env $(grep -v '^#' ${PWD}/.env | sed 's/#.*//' | xargs) docker stack deploy -c compose.yml ${PWD##*/} else docker stack deploy -c compose.yml ${PWD##*/} fi