#Static Images

1 messages · Page 1 of 1 (latest)

acoustic condor
#

Is there a best practice for using static images in the design (company logo i.e.) on self hosted appsmith via docker? Where can I store them? Can I mount a volume to the public folder somehow?

light widgetBOT
#

To use static images like a company logo in a self-hosted Appsmith instance via Docker, you can follow these best practices:

  1. Store Images in a Volume: You can store static images in a Docker volume. This allows you to persist data outside of the container lifecycle. You can create a volume and mount it to a directory within the Appsmith container where static assets are served.

  2. Mounting a Volume: You can mount a Docker volume to the /appsmith-stacks directory or another appropriate directory within the Appsmith container. This can be done by specifying the volume in your docker-compose.yml file or Docker run command.

  3. Accessing Images: Once the images are stored in the mounted volume, you can access them using the appropriate path in your Appsmith application.

Here is an example of how you might define a volume in a docker-compose.yml file:

yaml
version: '3'
services:
appsmith:
image: appsmith/appsmith-ee
volumes:

  • appsmith_data:/appsmith-stacks
    ports:
  • "80:80"
  • "443:443"

volumes:
appsmith_data:

This configuration mounts a Docker volume named appsmith_data to the /appsmith-stacks directory in the container, which you can use to store your static images.

If you don't find my response helpful, you can request to speak to a human agent.

acoustic condor
#

Can I speak to a human?

light widgetBOT
#

Someone from our team will reach out to you on this thread. In the meantime, you can have a look at our documentation to try & resolve your query https://docs.appsmith.com?utm=bot

Organizations build internal applications such as dashboards, database GUIs, admin panels, approval apps, customer support tools, etc. to help improve their business operations. Appsmith is an open-source developer tool that enables the rapid development of these applications. You can drag and drop pre-built widgets to build UI. Connect securely...