-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (26 loc) · 1.01 KB
/
Makefile
File metadata and controls
33 lines (26 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
.PHONY: up down logs status setup help
help: ## Show this help
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf " \033[36m%-10s\033[0m %s\n", $$1, $$2}'
setup: ## Copy .env.template to .env and create required env files (if they don't exist yet)
@if [ -f .env ]; then \
echo ".env already exists, skipping"; \
else \
cp .env.template .env; \
echo "Created .env from template - edit as needed"; \
fi
@if [ -f ESDLMapEditor/panel_service.env ]; then \
echo "ESDLMapEditor/panel_service.env already exists, skipping"; \
else \
cp ESDLMapEditor/panel_service.env.template ESDLMapEditor/panel_service.env; \
echo "Created ESDLMapEditor/panel_service.env (will be populated automatically on first start)"; \
fi
up: ## Start all services
docker-compose up
up-d: ## Start all services (detached)
docker-compose up -d
down: ## Stop all services
docker-compose down
logs: ## Follow logs (all services)
docker-compose logs -f
status: ## Show service status
docker-compose ps