diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..42cf880 --- /dev/null +++ b/Makefile @@ -0,0 +1,40 @@ +NAKAMA_COMPOSE = toolchain/docker-compose.nakama.yml
+NEXUS_COMPOSE = toolchain/docker-compose.nexus.yml
+
+.PHONY: up down clean logs-nakama logs-nexus nexus
+
+up:
+ @echo "Starting all services..."
+ @docker compose -f $(NAKAMA_COMPOSE) up -d
+ @docker compose -f $(NEXUS_COMPOSE) up -d
+ @echo "All services started."
+
+down:
+ @echo "Stopping all services..."
+ @docker compose -f $(NAKAMA_COMPOSE) down
+ @docker compose -f $(NEXUS_COMPOSE) down
+ @echo "All services stopped."
+
+clean:
+ @echo "Stopping and removing all data..."
+ @docker compose -f $(NAKAMA_COMPOSE) down -v
+ @docker compose -f $(NEXUS_COMPOSE) down -v
+ @rm -rf data/cockroach data/nakama data/postgres
+ @mkdir -p data/cockroach data/nakama data/postgres
+ @echo "Clean complete."
+
+logs-nakama:
+ @docker compose -f $(NAKAMA_COMPOSE) logs -f
+
+logs-nexus:
+ @docker compose -f $(NEXUS_COMPOSE) logs -f
+
+nexus:
+ @echo "Starting Nexus..."
+ @$(MAKE) -C nexus dev
+
+nexus-build:
+ @echo "Building Nexus..."
+ @$(MAKE) -C nexus build
+
+.SILENT:
\ No newline at end of file |
