29 lines
663 B
Makefile
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
|