plane icon indicating copy to clipboard operation
plane copied to clipboard

[bug]: Selfhosting Docker Install. Changing Container Name and Port

Open techguruagi opened this issue 2 years ago • 4 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Current behavior

I've several other containers running and one of the container is using "redis" as the name. Also running in the same port. same is the case with pgsql.

If i change the container name to planeredis and port to 6380, redis is not getting connected.

What should i do ?.

Steps to reproduce

In docker-compose-hub.yml

redis: image: redis:6.2.7-alpine container_name: planeredis restart: always ports: - 6380:6379 volumes: - redisdata:/data

Browser

Google Chrome

Version

Selfhost

techguruagi avatar Jun 04 '23 11:06 techguruagi

It is not working on a fresh install too. Not able to change any ports. It does not connect with either planebackend, planerqworker.

me-abhishekpal avatar Jun 04 '23 20:06 me-abhishekpal

Hello, @techguruagi! Considering that the container names have been changed, it's likely that the hostnames to the containers have also been altered. To resolve this issue, I recommend updating the REDIS_URL environment variable in both the plane-api and plane-worker containers to redis://<HOSTNAME>:6379/ By doing so, it should resolve the problem, and the applications should start functioning.

pablohashescobar avatar Jun 05 '23 06:06 pablohashescobar

Hey @pablohashescobar

for the record, i got the same error and I tried replacing the URLs accross the containers. Redis starts working but the plane worker and plane backend still do not connect.

me-abhishekpal avatar Jun 05 '23 10:06 me-abhishekpal

Hello @techguruagi! We're excited to inform you that we have updated the Docker setup. It would be fantastic if you could give it a try with the new setup. In this update, we have renamed redis to plane-redis for better clarity and organization. If you encounter any issues or have any questions during the process, please don't hesitate to reach out.

pablohashescobar avatar Jun 10 '23 08:06 pablohashescobar

Hi @pablohashescobar

Thank you. Installed the latest instance and is working fine. Appreciate your support

techguruagi avatar Jun 12 '23 05:06 techguruagi

Thanks for the update @techguruagi. Closing this issue now.

pablohashescobar avatar Jun 12 '23 06:06 pablohashescobar