feat: database
This commit is contained in:
23
Makefile
Normal file
23
Makefile
Normal file
@@ -0,0 +1,23 @@
|
||||
.PHONY: dev up down clean
|
||||
|
||||
# Start development environment: PostgreSQL and the app
|
||||
dev:
|
||||
@echo "Starting PostgreSQL database..."
|
||||
@docker compose -f docker-compose.dev.yaml up -d
|
||||
@echo "Waiting for database to be ready..."
|
||||
@sleep 3
|
||||
@echo "Starting application..."
|
||||
@npm start
|
||||
|
||||
# Start only the database
|
||||
up:
|
||||
@docker compose -f docker-compose.dev.yaml up -d
|
||||
|
||||
# Stop the database
|
||||
down:
|
||||
@docker compose -f docker-compose.dev.yaml down
|
||||
|
||||
# Stop and remove volumes (clean slate)
|
||||
clean:
|
||||
@docker compose -f docker-compose.dev.yaml down -v
|
||||
|
||||
Reference in New Issue
Block a user