DB optimization: pool, golang-migrate, consolidate to single Postgres
- Fix DB_NAME=db_yal -> mydb in api_yal .env - Add connection pool (MaxOpenConns 25, MaxIdleConns 10, ConnMaxLifetime 30m) - Replace GORM AutoMigrate with golang-migrate in api_yal and api_bb - Create embedded SQL migrations for both APIs - Add DB_SCHEMA support to api_bb config - Consolidate to single Postgres: db_bb -> schema 'bb' on db container - Remove db_bb service, bb-network, db_bb volume from compose - Remove api_tp targets from Makefile - Clean up old migrate.go
This commit is contained in:
@@ -209,22 +209,6 @@ vue_site: valitovgaziz_build_spa stop_valitovgaziz build_valitovgaziz start_vali
|
||||
wn:
|
||||
watch -n 2 'docker ps'
|
||||
|
||||
# Остановка api_tp
|
||||
stop_api_tp:
|
||||
docker compose down api_tp
|
||||
|
||||
# Пересборка api_tp
|
||||
build_api_tp:
|
||||
docker compose build api_tp --no-cache
|
||||
|
||||
# Запуск api_tp
|
||||
start_api_tp:
|
||||
docker compose up api_tp -d
|
||||
|
||||
# Полный цикл обновления api_tp
|
||||
api_tp: stop_api_tp git build_api_tp start_api_tp wn
|
||||
|
||||
|
||||
# Остановка api_yal
|
||||
stop_api_yal:
|
||||
docker compose down api_yal
|
||||
|
||||
Reference in New Issue
Block a user