Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker compose #303

Merged
merged 11 commits into from
Oct 18, 2024
Merged

Docker compose #303

merged 11 commits into from
Oct 18, 2024

Conversation

wuputah
Copy link
Collaborator

@wuputah wuputah commented Oct 17, 2024

Usage:

git clone https://github.com/duckdb/pg_duckdb
cd pg_duckdb
docker compose up -d
docker exec db psql

Alternatively, the compose file and config file docker directory can be downloaded and used directly without the rest of the repo.

@JelteF JelteF added documentation Improvements or additions to documentation developer experience Improves our own lives labels Oct 17, 2024
@@ -0,0 +1 @@
CREATE EXTENSION IF NOT EXISTS pg_duckdb;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I created #305 to bake this into the docker images themselves.

docker-compose.yml Outdated Show resolved Hide resolved
@wuputah wuputah force-pushed the jd/docker-compose branch 2 times, most recently from 121f58a to fa94280 Compare October 17, 2024 17:00
@wuputah
Copy link
Collaborator Author

wuputah commented Oct 17, 2024

I figured out the psql issue. The secret to inter-container networking is you need to use the name of service as the hostname. But compose doesnt really support anything interactive, so best to axe it. We could set up adminer or similar, but I tried adminer and is functional but ugly. Maybe we can add drizzle studio which is a bit slicker, but they don't have an image that would work out of the box.

Anyway, done for now.

@wuputah wuputah marked this pull request as ready for review October 17, 2024 17:30
@wuputah wuputah requested review from JelteF and Y-- October 17, 2024 17:30
@wuputah wuputah merged commit e0bcc3d into main Oct 18, 2024
4 checks passed
@wuputah wuputah deleted the jd/docker-compose branch October 18, 2024 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
developer experience Improves our own lives documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants