Skip to content

Install extension when directus is installed in a docker container #55

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

Open
mrlopezco opened this issue May 12, 2025 · 2 comments
Open

Comments

@mrlopezco
Copy link

Hey folks,

apologies for the dumb question, but how do you install this extension if Directus is running within a container?
Thanks!

@sacconazzo
Copy link
Owner

sacconazzo commented May 13, 2025

Hey,

Thanks for the feedback! You can find the official Docker installation guide for Directus extensions here:
https://docs.directus.io/self-hosted/docker-guide

This guide walks you through:

  • Creating a volume or bind-mount for your /extensions folder
  • Building or pulling the Directus container with that mount in place
  • Restarting the container so Directus picks up your new extension

Everything follows the standard Directus extension workflow—you shouldn’t need any special tweaks beyond what’s in the docs. Have you run into any odd behavior or unexpected errors when following those steps? Let me know if something doesn’t line up!

@sacconazzo
Copy link
Owner

What’s specified above concerns extension customizations (for example, the oas.yaml file).

As for installing the extension itself, you can modify the Dockerfile as shown in the guide:
https://directus.io/docs/self-hosting/including-extensions#_2-create-a-dockerfile

ex.:

FROM directus/directus:latest

USER root
RUN corepack enable
USER node

RUN pnpm install directus-extension-api-docs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants