tablespaces, structure.sql
This commit is contained in:
@@ -74,7 +74,7 @@ RUN git config --system core.pager "delta" && \
|
||||
git config --system delta.navigate true && \
|
||||
git config --system delta.dark true && \
|
||||
git config --system delta.side-by-side true && \
|
||||
git config --system merge.conflictstyle "zdiff3" \
|
||||
git config --system merge.conflictstyle "zdiff3" && \
|
||||
git config --system core.editor "cursor --wait"
|
||||
|
||||
# Install native gems
|
||||
|
||||
@@ -4,4 +4,5 @@ RUN apt-get update && apt-get install -y \
|
||||
postgresql-17-pgvector \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
COPY create-tablespaces.bash /docker-entrypoint-initdb.d/00-create-tablespaces.bash
|
||||
RUN echo "CREATE EXTENSION pgvector;" >> /docker-entrypoint-initdb.d/01-pgvector.sql
|
||||
|
||||
9
.devcontainer/create-tablespaces.bash
Executable file
9
.devcontainer/create-tablespaces.bash
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/bin/bash -ex
|
||||
|
||||
mkdir -p /tablespaces/mirai
|
||||
chown postgres:postgres /tablespaces/mirai
|
||||
chmod 750 /tablespaces/mirai
|
||||
psql -v ON_ERROR_STOP=1 \
|
||||
--username "$POSTGRES_USER" \
|
||||
--dbname "$POSTGRES_DB" \
|
||||
-c "CREATE TABLESPACE mirai LOCATION '/tablespaces/mirai'"
|
||||
@@ -24,6 +24,7 @@ services:
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- postgres-data:/var/lib/postgresql/data
|
||||
- postgres-data-tablespaces:/tablespaces
|
||||
- ./create-db-user.sql:/docker-entrypoint-initdb.d/create-db-user.sql
|
||||
environment:
|
||||
POSTGRES_USER: postgres
|
||||
@@ -66,6 +67,7 @@ services:
|
||||
|
||||
volumes:
|
||||
postgres-data:
|
||||
postgres-data-tablespaces:
|
||||
devcontainer-redux-gem-cache:
|
||||
devcontainer-redux-blob-files:
|
||||
devcontainer-redux-grafana-data:
|
||||
|
||||
1232
db/structure.sql
1232
db/structure.sql
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user