[closes #33] Added compose file; ./fejctl rr works now

This commit is contained in:
Jef Roosens 2021-04-17 15:10:42 +02:00
parent 65c3d616de
commit 00bf8501dd
Signed by: Jef Roosens
GPG key ID: B580B976584B5F30
3 changed files with 52 additions and 2 deletions

14
fejctl
View file

@ -105,7 +105,18 @@ function stop() {
}
function run_release() {
echo "Not implemented"
docker-compose \
--file docker/docker-compose.yml \
--project-name fej-release \
up \
--detach
}
function stop_release() {
docker-compose \
--file docker/docker-compose.yml \
--project-name fej-release \
down
}
# Tags & pushes the release version to Docker Hub
@ -155,6 +166,7 @@ function main() {
r | run ) run "$bin" ;;
rr | run-release ) run_release ;;
s | stop ) stop ;;
sr | stop-release ) stop_release ;;
# Ease of life
psql ) docker exec -it fej_db psql -U fej -d fej ;;