ft_chatons/justfile
2026-03-03 14:17:25 +01:00

29 lines
663 B
Makefile

default:
just --list
## Start the compose of the param
start container="":
#!/bin/sh
if [ "{{container}}" = "caddy" ]; then
bash core/tools/caddy-init.sh
fi
docker compose -f core/{{container}}/compose.yml up -d
## Stop the compose of the param
down container="":
docker compose -f core/{{container}}/compose.yml down
## Delete all container, volumes, etc...
clean container="": (down container)
docker volume rm $(docker volume ls -q) || true
#docker system prune -af
docker volume prune -f
## Restart all the compose
re container="": (down container) (clean container)
just start {{container}}
tests:
bash core/tools/test-caddy