summaryrefslogtreecommitdiff
path: root/yams
blob: cba00c0b2ac04ed4ac17e18daa6906c3cf9fe722 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash
set -eu

if [ $1 == "restart" ]; then
    docker-compose -f <filename> stop && docker-compose up -d
fi

if [ $1 == "stop" ]; then
    docker-compose -f <filename> stop
fi

if [ $1 == "start" ]; then
    docker-compose -f <filename> up -d
fi