Skip to content

Instantly share code, notes, and snippets.

@runeb
Created July 18, 2023 21:39
Show Gist options
  • Save runeb/ed1a64859a7c762d9b6f5d41a8c63521 to your computer and use it in GitHub Desktop.
Save runeb/ed1a64859a7c762d9b6f5d41a8c63521 to your computer and use it in GitHub Desktop.
pg_embedding docker compose
version: '3'
services:
postgres:
build: .
ports:
- "5432:5432"
restart: always
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: mysecretdbpasswd
volumes:
- pgdata:/var/lib/postgresql/data
volumes:
pgdata:
FROM postgres:15.3
RUN apt update && apt upgrade -y
RUN apt install -y git build-essential postgresql-server-dev-15
# Copy in files from ph_embedding dir
RUN git clone https://github.com/neondatabase/pg_embedding.git
RUN cd pg_embedding && make && make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment