Skip to content

Commit 4c138f6

Browse files
committed
fix: use postgres base init and ext setup
1 parent 8884e39 commit 4c138f6

7 files changed

Lines changed: 7 additions & 116 deletions

File tree

Containerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,5 +66,8 @@ COPY --from=builder /usr/local/share/postgresql/extension/vchord* /usr/local/sha
6666
RUN chmod 644 /usr/local/share/postgresql/extension/vchord* && \
6767
chmod 755 /usr/local/lib/postgresql/vchord.so
6868

69+
# Copy init scripts for extensions
70+
COPY docker-entrypoint-initdb.d/ /docker-entrypoint-initdb.d/
71+
6972
# Immich-specific defaults
7073
ENV POSTGRES_DB=immich
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
-- Enable Immich required extensions
2+
CREATE EXTENSION IF NOT EXISTS vector;
3+
CREATE EXTENSION IF NOT EXISTS vchord;
4+
CREATE EXTENSION IF NOT EXISTS pg_trgm;

root/etc/cont-init.d/01-init-db

Lines changed: 0 additions & 36 deletions
This file was deleted.

root/etc/cont-init.d/02-create-db

Lines changed: 0 additions & 30 deletions
This file was deleted.

root/etc/services.d/init-db/run

Lines changed: 0 additions & 42 deletions
This file was deleted.

root/etc/services.d/init-db/type

Lines changed: 0 additions & 1 deletion
This file was deleted.

root/etc/services.d/postgres/run

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)