mirror of
https://github.com/esauflores/databases.git
synced 2026-03-09 06:30:34 +00:00
feat: add PostgreSQL extensions and update Dockerfile for initialization
This commit is contained in:
3
postgres/000_extensions.sql
Normal file
3
postgres/000_extensions.sql
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
CREATE EXTENSION IF NOT EXISTS citext;
|
||||||
|
CREATE EXTENSION IF NOT EXISTS pg_trgm;
|
||||||
|
CREATE EXTENSION IF NOT EXISTS pgcrypto;
|
||||||
@@ -1 +1,6 @@
|
|||||||
FROM postgres:18.3-alpine
|
FROM postgres:18-alpine
|
||||||
|
|
||||||
|
COPY 000_extensions.sql /docker-entrypoint-initdb.d/
|
||||||
|
|
||||||
|
HEALTHCHECK --interval=10s --timeout=5s --retries=5 \
|
||||||
|
CMD pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}
|
||||||
|
|||||||
Reference in New Issue
Block a user