fix(db): исправить импорт jsonb из sqlite
Docker images / prepare-release (push) Successful in 11s
Docker images / backend-test (push) Failing after 12s
Docker images / backend-image (push) Skipped
Docker images / frontend-image (push) Successful in 3m14s
Docker images / notify-webhook (push) Skipped
Docker images / updater-image (push) Successful in 47s
Docker images / publish-release (push) Skipped
Docker images / prepare-release (push) Successful in 11s
Docker images / backend-test (push) Failing after 12s
Docker images / backend-image (push) Skipped
Docker images / frontend-image (push) Successful in 3m14s
Docker images / notify-webhook (push) Skipped
Docker images / updater-image (push) Successful in 47s
Docker images / publish-release (push) Skipped
JSON-колонки передаются строкой с приведением ::jsonb, иначе node-pg кодирует массивы как PostgreSQL array и ETL падает. Повтор импорта идёт, пока нет маркера. Том PG18 монтируется в /var/lib/postgresql. Co-authored-by: Cursor <[email protected]>
This commit is contained in:
@@ -146,7 +146,8 @@ services:
|
||||
- -c
|
||||
- wal_compression=on
|
||||
volumes:
|
||||
- mmapp-pgdata:/var/lib/postgresql/data
|
||||
# PostgreSQL 18+: VOLUME is /var/lib/postgresql (PGDATA = .../18/docker)
|
||||
- mmapp-pgdata:/var/lib/postgresql
|
||||
networks:
|
||||
- mmapp
|
||||
healthcheck:
|
||||
|
||||
@@ -32,7 +32,8 @@ services:
|
||||
- -c
|
||||
- wal_compression=on
|
||||
volumes:
|
||||
- mmapp-pgdata:/var/lib/postgresql/data
|
||||
# PostgreSQL 18+: VOLUME is /var/lib/postgresql (PGDATA = .../18/docker)
|
||||
- mmapp-pgdata:/var/lib/postgresql
|
||||
ports:
|
||||
- "127.0.0.1:${POSTGRES_PORT:-5432}:5432"
|
||||
healthcheck:
|
||||
|
||||
@@ -48,7 +48,8 @@ services:
|
||||
- -c
|
||||
- wal_compression=on
|
||||
volumes:
|
||||
- mmapp-pgdata:/var/lib/postgresql/data
|
||||
# PostgreSQL 18+: VOLUME is /var/lib/postgresql (PGDATA = .../18/docker)
|
||||
- mmapp-pgdata:/var/lib/postgresql
|
||||
networks:
|
||||
- mmapp
|
||||
healthcheck:
|
||||
|
||||
@@ -83,7 +83,8 @@ services:
|
||||
- -c
|
||||
- wal_compression=on
|
||||
volumes:
|
||||
- mmapp-pgdata:/var/lib/postgresql/data
|
||||
# PostgreSQL 18+: VOLUME is /var/lib/postgresql (PGDATA = .../18/docker)
|
||||
- mmapp-pgdata:/var/lib/postgresql
|
||||
networks:
|
||||
- mmapp
|
||||
healthcheck:
|
||||
|
||||
@@ -28,7 +28,8 @@ services:
|
||||
- -c
|
||||
- wal_compression=on
|
||||
volumes:
|
||||
- mmapp-pgdata:/var/lib/postgresql/data
|
||||
# PostgreSQL 18+: VOLUME is /var/lib/postgresql (PGDATA = .../18/docker)
|
||||
- mmapp-pgdata:/var/lib/postgresql
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U mmapp -d mmapp"]
|
||||
interval: 5s
|
||||
|
||||
@@ -97,7 +97,7 @@ if ! docker inspect mmapp-postgres >/dev/null 2>&1; then
|
||||
-e POSTGRES_INITDB_ARGS="--encoding=UTF8 --locale=C.UTF-8 --data-checksums" \
|
||||
-e TZ=UTC \
|
||||
-e PGTZ=UTC \
|
||||
-v mmapp-pgdata:/var/lib/postgresql/data \
|
||||
-v mmapp-pgdata:/var/lib/postgresql \
|
||||
--health-cmd="pg_isready -U mmapp -d mmapp" \
|
||||
--health-interval=5s \
|
||||
--health-timeout=5s \
|
||||
|
||||
Reference in New Issue
Block a user