108 lines
2.3 KiB
Makefile
108 lines
2.3 KiB
Makefile
# Makefile for the project
|
|
|
|
# Variables
|
|
|
|
# Commands
|
|
serve: pull
|
|
@echo "Serving the project..."
|
|
docker compose -f compose.yml up -d --build --pull always
|
|
down: pull
|
|
@echo "Stopping the project..."
|
|
docker compose -f compose.yml down --remove-orphans
|
|
|
|
pull:
|
|
@echo "Pulling the project..."
|
|
git pull
|
|
|
|
deploy-core: pull
|
|
{ \
|
|
echo "Deploying the core stack..." ;\
|
|
set -a ;\
|
|
. ./swarm/.env ;\
|
|
set +a ;\
|
|
docker stack deploy --compose-file ./swarm/core.yml core ;\
|
|
}
|
|
|
|
deploy-portainer: pull
|
|
{ \
|
|
echo "Deploying the portainer stack..." ;\
|
|
set -a ;\
|
|
. ./swarm/.env ;\
|
|
set +a ;\
|
|
docker stack deploy --compose-file ./swarm/portainer.yml portainer ;\
|
|
}
|
|
|
|
deploy-services: pull
|
|
{ \
|
|
echo "Deploying the services stack..." ;\
|
|
set -a ;\
|
|
. ./swarm/.env ;\
|
|
set +a ;\
|
|
docker stack deploy --compose-file ./swarm/services.yml services ;\
|
|
}
|
|
|
|
deploy-apps: pull
|
|
{ \
|
|
echo "Deploying the apps stack..." ;\
|
|
set -a ;\
|
|
. ./swarm/.env ;\
|
|
set +a ;\
|
|
docker stack deploy --compose-file ./swarm/apps.yml apps ;\
|
|
}
|
|
deploy-secondary: pull
|
|
{ \
|
|
echo "Deploying the secondary stack..." ;\
|
|
set -a ;\
|
|
. ./swarm/.env ;\
|
|
set +a ;\
|
|
docker stack deploy --compose-file ./swarm/secondary.yml secondary ;\
|
|
}
|
|
deploy-emqx: pull
|
|
{ \
|
|
echo "Deploying the emqx stack..." ;\
|
|
set -a ;\
|
|
. ./swarm/.env ;\
|
|
set +a ;\
|
|
docker stack deploy --compose-file ./swarm/emqx.yml emqx ;\
|
|
}
|
|
deploy-ghost: pull
|
|
{ \
|
|
echo "Deploying the ghost stack..." ;\
|
|
set -a ;\
|
|
. ./swarm/.env ;\
|
|
set +a ;\
|
|
docker stack deploy --compose-file ./swarm/ghost.yml ghost ;\
|
|
}
|
|
deploy-swarmpit: pull
|
|
{ \
|
|
echo "Deploying the swarmpit stack..." ;\
|
|
set -a ;\
|
|
. ./swarm/.env ;\
|
|
set +a ;\
|
|
docker stack deploy --compose-file ./swarm/swarmpit.yml swarmpit ;\
|
|
}
|
|
deploy-librechat: pull
|
|
{ \
|
|
echo "Deploying the librechat stack..." ;\
|
|
set -a ;\
|
|
. ./swarm/.env ;\
|
|
set +a ;\
|
|
docker stack deploy --compose-file ./swarm/librechat.yml librechat ;\
|
|
}
|
|
deploy-openwebui: pull
|
|
{ \
|
|
echo "Deploying the openwebui stack..." ;\
|
|
set -a ;\
|
|
. ./swarm/.env ;\
|
|
set +a ;\
|
|
docker stack deploy --compose-file ./swarm/openwebui.yml openwebui ;\
|
|
}
|
|
deploy-thelounge: pull
|
|
{ \
|
|
echo "Deploying the thelounge stack..." ;\
|
|
set -a ;\
|
|
. ./swarm/.env ;\
|
|
set +a ;\
|
|
docker stack deploy --compose-file ./swarm/thelounge.yml thelounge ;\
|
|
}
|
|
# git submodule update --init --recursive
|