fix: adjust docker and any file for starting project

This commit is contained in:
Hafizh A. Y
2025-09-30 14:45:54 +07:00
parent c136206f2d
commit 94a6d41a61
27 changed files with 599 additions and 600 deletions
+3 -6
View File
@@ -5,7 +5,7 @@ export
endif
# --- Konfigurasi umum ---
COMPOSE ?= docker compose -f docker-compose.dev.yml
COMPOSE ?= docker compose -f docker-compose.local.yml
NETWORK ?= lti-api_go-network
MIGRATE_IMAGE ?= migrate/migrate
MIGRATIONS_DIR := $(PWD)/internal/database/migrations
@@ -31,7 +31,7 @@ WAIT_DB := docker run --rm --network $(NETWORK) postgres:alpine \
db-up wait-db \
migration-% migrate-up migrate-down migrate-fresh \
seed \
docker-dev docker-prod docker-down docker-nuke docker-cache psql
docker-local docker-down docker-nuke docker-cache psql
# --- Go workflow ---
start:
@@ -90,12 +90,9 @@ seed: db-up wait-db
@$(COMPOSE) run --rm app go run cmd/seed/main.go
# --- Docker orchestration convenience ---
docker-dev:
docker-local:
@$(COMPOSE) up --build -d
docker-prod:
@docker compose -f docker-compose.prod.yml up --build -d
docker-down:
@$(COMPOSE) down --remove-orphans