TypingMind / plugins-server

Open-source proxy server for Typing Mind's Plugins
https://docs.typingmind.com/plugins
MIT License
36 stars 38 forks source link

Please add docker-compose.yml file #44

Open ben-kenney opened 3 months ago

ben-kenney commented 3 months ago

Let's Talk About Your Feature Idea

We're always looking for ways to improve TypingMind Proxy! Let's discuss how your feature could address current limitations and enhance the plugin development experience.

1. What problem does this solve?

Makes it easier for user to start the docker service.

2. Describe your proposed solution.

Include the following docker-compose.yml file in the repo:

services:
  typingmind-plugins-server:
    build:
      context: ./
      dockerfile: Dockerfile
    ports:
      - "8080:8080"
    environment:
      - NODE_ENV=development

This way user just need to run: docker compose up -d

nickali commented 1 month ago

I've tried creating a docker-compose.yml like this and running it locally and setting the URL in TypingMind to http://127.0.0.1:8080. I get the error:

Error: Unable to generate a summary. Please try again later.

The docker logs don't show any errors.

ben-kenney commented 1 month ago

I've tried creating a docker-compose.yml like this and running it locally and setting the URL in TypingMind to http://127.0.0.1:8080. I get the error:

My guess is that typingmind doesn’t have access to 127.0.0.1 since this will only work on the machine running the docker container. You’ll probably need to make sure the docker container is accessible from outside your local network. I’m using cloudflare tunnels to do this for example.