init
Some checks failed
Build and Release / release (push) Failing after 1m29s

This commit is contained in:
2026-03-25 23:15:47 +07:00
parent 21dd86c3ea
commit b8d3589283

View File

@@ -36,14 +36,12 @@ services:
env_file: env_file:
- ./assets/resources/.env - ./assets/resources/.env
volumes: volumes:
# Sử dụng đường dẫn tuyệt đối biến docker tự hiểu hoặc đảm bảo folder tồn tại - ${PWD}/db/migrations:/migrations:ro
- ./db/migrations:/migrations:ro
entrypoint: entrypoint:
- sh - sh
- -c - -c
- | - |
DB_URL="postgres://$${POSTGRES_USER}:$${POSTGRES_PASSWORD}@db:5432/$${POSTGRES_DB}?sslmode=disable" DB_URL="postgres://$${POSTGRES_USER}:$${POSTGRES_PASSWORD}@db:5432/$${POSTGRES_DB}?sslmode=disable"
# Thêm ls để debug xem có file không nếu vẫn lỗi
ls /migrations ls /migrations
/migrate -path /migrations -database "$$DB_URL" up || \ /migrate -path /migrations -database "$$DB_URL" up || \
(/migrate -path /migrations -database "$$DB_URL" force 8 && \ (/migrate -path /migrations -database "$$DB_URL" force 8 && \