Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 20, 2025

The installation script only applied --endpoint-mode dnsrr to the dokploy service when running in LXC containers, causing postgres and redis services to fail in this environment.

Changes

  • Added $endpoint_mode to dokploy-postgres service creation
  • Added $endpoint_mode to dokploy-redis service creation
  • Updated warning message from "Docker service" to "Docker services"

When is_proxmox_lxc() detects an LXC environment, all three services now receive the dnsrr endpoint mode:

endpoint_mode="--endpoint-mode dnsrr"

docker service create \
  --name dokploy-postgres \
  ... \
  $endpoint_mode \
  postgres:16

docker service create \
  --name dokploy-redis \
  ... \
  $endpoint_mode \
  redis:7
Original prompt

This section details on the original issue you should resolve

<issue_title>Installation script is incorrect for LXC containers with dnsrr endpoint modes.</issue_title>
<issue_description>### To Reproduce

Use the installation script, available at https://dokploy.com/install.sh.

Current vs. Expected behavior

Currently it only appends the --endpoint-mode dnsrr to the dokploy service, while it should be appended to all services.

Provide environment information

Using any LXC container with Ubuntu 24.04-2.

I will append below a fixed version of the script, and also send push requests asap.

Which area(s) are affected? (Select all that apply)

Installation

Are you deploying the applications where Dokploy is installed or on a remote server?

Same server where Dokploy is installed

Additional context

No response

Will you send a PR to fix it?

Yes</issue_description>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

- Added $endpoint_mode to dokploy-postgres service creation
- Added $endpoint_mode to dokploy-redis service creation
- Updated warning message to reflect services (plural) instead of service (singular)
- Ensures all Docker services work correctly in LXC containers with dnsrr endpoint mode

Co-authored-by: Siumauricio <[email protected]>
@Siumauricio Siumauricio marked this pull request as ready for review December 20, 2025 05:05
@Siumauricio Siumauricio self-requested a review as a code owner December 20, 2025 05:05
Copilot AI changed the title [WIP] Fix installation script for LXC containers with dnsrr endpoint modes Fix: Apply --endpoint-mode dnsrr to all services in LXC containers Dec 20, 2025
@Siumauricio Siumauricio merged commit c3b5bfb into main Dec 20, 2025
@Siumauricio Siumauricio deleted the copilot/fix-installation-script-dnsrr branch December 20, 2025 05:06
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

Successfully merging this pull request may close these issues.

Installation script is incorrect for LXC containers with dnsrr endpoint modes.

2 participants