Removed docker swarm config

Added K8S config
With big refactor
This commit is contained in:
PB
2025-10-20 13:51:45 +02:00
parent fa62c0b817
commit 0938338b99
40 changed files with 1147 additions and 1675 deletions

View File

@@ -1,22 +1,13 @@
DEPLOY_DIR := ./deploy
init:
- sh ${DEPLOY_DIR}/scripts/init-k8s.sh
up:
- sh ${DEPLOY_DIR}/scripts/start-docker.sh
down:
- docker stack rm egommerce
k8s-up:
- sh ${DEPLOY_DIR}/scripts/start-k8s.sh
k8s-down:
- kubectl delete -f deploy/k8s/stack.yml
down:
- sh ${DEPLOY_DIR}/scripts/stop-k8s.sh
# GENERATING CERTS
certs:
- bash ${DEPLOY_DIR}/scripts/gen-certs.sh
volumes-restart:
- docker stack rm egommerce
- docker volume prune -af
- sh ${DEPLOY_DIR}/start-stack.sh