Wokring traefik

With whoami and gitea working (although I haven't rebuilt yet)
This commit is contained in:
James Thompson
2026-03-23 05:59:53 +00:00
parent fb31bcb0a3
commit 28aa6e28fe
6 changed files with 26 additions and 11 deletions

View File

@@ -1,14 +1,28 @@
SERVICES=traefik whoami gitea nextcloud devbox
.PHONY: up down restart backup init-env env-sync docs generate-docs serve-docs logs status
.PHONY: up down restart backup init-env env-sync docs generate-docs serve-docs logs status up-% down-%
up:
@for svc in $(SERVICES); do \
for svc in $(SERVICES); do \
if [ -f "$$svc/docker-compose.yml" ]; then \
echo "Starting $$svc..."; \
(cd $$svc && docker compose up -d); \
(cd $$svc && docker compose --env-file ../.env `if [ -f .env ]; then echo --env-file .env; fi` up -d); \
fi; \
done
done; \
up-%:
@svc=$*; \
if [ -f "$$svc/docker-compose.yml" ]; then \
echo "Starting $$svc..."; \
(cd $$svc && docker compose --env-file ../.env `if [ -f .env ]; then echo --env-file .env; fi` up -d); \
fi
down-%:
@svc=$*; \
if [ -f "$$svc/docker-compose.yml" ]; then \
echo "Stopping $$svc..."; \
(cd $$svc && docker compose down); \
fi
down:
@for svc in $(SERVICES); do \