add init.sql

parent 1efeecf8
version: "3.8" version: "3.8"
services: services:
postgres: postgres:
image: pgvector/pgvector:pg16 build:
context: ./postgres
dockerfile: Dockerfile
environment: environment:
POSTGRES_USER: ${POSTGRES_USER} POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD} POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB} POSTGRES_DB: ${POSTGRES_DB}
volumes: volumes:
- pgdata:/var/lib/postgresql/data - pgdata:/var/lib/postgresql/data
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
ports: ports:
- "5432:5432" - "5432:5432"
healthcheck: healthcheck:
...@@ -16,8 +17,7 @@ services: ...@@ -16,8 +17,7 @@ services:
interval: 10s interval: 10s
timeout: 5s timeout: 5s
retries: 5 retries: 5
minio: minio:
image: minio/minio:latest image: minio/minio:latest
command: server /data --console-address ":9001" command: server /data --console-address ":9001"
...@@ -34,9 +34,7 @@ services: ...@@ -34,9 +34,7 @@ services:
interval: 30s interval: 30s
timeout: 20s timeout: 20s
retries: 3 retries: 3
voice-agent: voice-agent:
image: salmamohammedhamedmustafa/voice-agent:latest image: salmamohammedhamedmustafa/voice-agent:latest
ports: ports:
...@@ -55,7 +53,6 @@ services: ...@@ -55,7 +53,6 @@ services:
- minio - minio
- postgres - postgres
volumes: volumes:
pgdata: pgdata:
miniodata: miniodata:
\ No newline at end of file
FROM pgvector/pgvector:pg16
# This command copies your local init.sql file into the special directory
COPY init.sql /docker-entrypoint-initdb.d/
\ No newline at end of file
CREATE EXTENSION IF NOT EXISTS vector;
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment