File size: 439 Bytes
cb9d76a
2833ba9
6a77700
c0f0499
 
748b832
cb9d76a
748b832
cb9d76a
748b832
 
 
 
 
cb9d76a
748b832
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Use pgvector with Postgres 17 as the base image
FROM pgvector/pgvector:pg17

USER postgres

# Set environment variable for PostgreSQL password and data directory
ENV POSTGRES_PASSWORD=postgres
ENV PGDATA=/data/postgresql

# Create and configure the data directories
RUN mkdir -p /data/postgresql && \
    chown -R postgres:postgres /data && \
    chmod 777 /data && \
    chmod 700 /data/postgresql

# Expose PostgreSQL port
EXPOSE 5432