test / Dockerfile
TahaRasouli's picture
Update Dockerfile
53ec6bf verified
raw
history blame
397 Bytes
# Use the official PostgreSQL image from Docker Hub
FROM phidata/pgvector:16
# Set environment variables
ENV POSTGRES_DB=ai
ENV POSTGRES_USER=ai
ENV POSTGRES_PASSWORD=ai
ENV PGDATA=/var/lib/postgresql/data/pgdata
# Expose the PostgreSQL port
EXPOSE 5432
# Use a volume for PostgreSQL data
VOLUME ["/var/lib/postgresql/data"]
# The default command to run the PostgreSQL server
CMD ["postgres"]