Skip to content

Commit c3b5bfb

Browse files
authored
Merge pull request #109 from Dokploy/copilot/fix-installation-script-dnsrr
Fix: Apply --endpoint-mode dnsrr to all services in LXC containers
2 parents 043db9d + 8b2f10f commit c3b5bfb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

apps/website/public/install.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ install_dokploy() {
8484
endpoint_mode=""
8585
if is_proxmox_lxc; then
8686
echo "⚠️ WARNING: Detected Proxmox LXC container environment!"
87-
echo "Adding --endpoint-mode dnsrr to Docker service for LXC compatibility."
87+
echo "Adding --endpoint-mode dnsrr to Docker services for LXC compatibility."
8888
echo "This may affect service discovery but is required for LXC containers."
8989
echo ""
9090
endpoint_mode="--endpoint-mode dnsrr"
@@ -188,13 +188,15 @@ install_dokploy() {
188188
--env POSTGRES_DB=dokploy \
189189
--env POSTGRES_PASSWORD=amukds4wi9001583845717ad2 \
190190
--mount type=volume,source=dokploy-postgres,target=/var/lib/postgresql/data \
191+
$endpoint_mode \
191192
postgres:16
192193

193194
docker service create \
194195
--name dokploy-redis \
195196
--constraint 'node.role==manager' \
196197
--network dokploy-network \
197198
--mount type=volume,source=dokploy-redis,target=/data \
199+
$endpoint_mode \
198200
redis:7
199201

200202
# Installation

0 commit comments

Comments
 (0)