Created
July 18, 2023 21:39
-
-
Save runeb/ed1a64859a7c762d9b6f5d41a8c63521 to your computer and use it in GitHub Desktop.
pg_embedding docker compose
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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