mirror of
https://github.com/immich-app/immich.git
synced 2025-01-06 03:46:47 +01:00
bf1dd36fa9
* refactor: domain and infra modules * refactor(server): e2e tests
16 lines
529 B
TypeScript
16 lines
529 B
TypeScript
import { PostgreSqlContainer } from '@testcontainers/postgresql';
|
|
|
|
export default async () => {
|
|
const pg = await new PostgreSqlContainer('tensorchord/pgvecto-rs:pg14-v0.1.11')
|
|
.withDatabase('immich')
|
|
.withUsername('postgres')
|
|
.withPassword('postgres')
|
|
.withReuse()
|
|
.withCommand(['-c', 'fsync=off', '-c', 'shared_preload_libraries=vectors.so'])
|
|
.start();
|
|
|
|
process.env.DB_URL = pg.getConnectionUri();
|
|
process.env.NODE_ENV = 'development';
|
|
process.env.LOG_LEVEL = 'fatal';
|
|
process.env.TZ = 'Z';
|
|
};
|