Compare commits

..
Author SHA1 Message Date
Mauricio SiuandClaude Fable 5 1e486813b4 fix(signoz): fix ClickHouse hostname resolution and IPv6 binding
- Override the ClickHouse image's config.d/docker_related_config.xml,
  which listens on the IPv6 wildcard address ([::]) first and fails to
  bind on hosts without IPv6 support; listen on 0.0.0.0 (IPv4) only and
  disable the internal DNS cache so transient startup DNS failures for
  zookeeper-1/clickhouse are not cached (issue #534).
- Set hostname: clickhouse (instead of container_name) so the server
  identifies itself as the cluster host declared in cluster.xml.
- Remove the explicit signoz-net network: Dokploy attaches its own
  networks automatically and the repo validator rejects explicit
  networks; a fixed-name shared network also breaks service DNS across
  deployments.
- Fix mount mismatch: template.toml created files/signoz/prometheus.xml
  while the compose mounts ../files/signoz/prometheus.yml, so Docker
  silently mounted a directory as the signoz prometheus config.
- Give the otel-collector domain its own generated host: both domains
  previously shared the same host and path "/", creating two conflicting
  Traefik routers where one service randomly won.

Closes #534

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-14 11:30:07 -06:00
6 changed files with 21 additions and 119 deletions
+2 -6
View File
@@ -1,6 +1,4 @@
x-common: &common
networks:
- signoz-net
restart: unless-stopped
logging:
options:
@@ -89,11 +87,12 @@ services:
- ZOO_PROMETHEUS_METRICS_PORT_NUMBER=9141
clickhouse:
!!merge <<: *clickhouse-defaults
container_name: signoz-clickhouse
hostname: clickhouse
volumes:
- ../files/clickhouse/config.xml:/etc/clickhouse-server/config.xml
- ../files/clickhouse/user_scripts:/var/lib/clickhouse/user_scripts/
- ../files/clickhouse/cluster.xml:/etc/clickhouse-server/config.d/cluster.xml
- ../files/clickhouse/docker_related_config.xml:/etc/clickhouse-server/config.d/docker_related_config.xml
- clickhouse:/var/lib/clickhouse/
signoz:
!!merge <<: *db-depend
@@ -156,9 +155,6 @@ services:
- --dsn=tcp://clickhouse:9000
- --up=
restart: on-failure
networks:
signoz-net:
name: signoz-net
volumes:
clickhouse:
name: signoz-clickhouse
+19 -2
View File
@@ -1,5 +1,6 @@
[variables]
main_domain = "${domain}"
otel_domain = "${domain}"
jwt_secret = "${password:64}"
[config]
@@ -12,7 +13,7 @@ path = "/"
[[config.domains]]
serviceName = "otel-collector"
port = 4318
host = "${main_domain}"
host = "${otel_domain}"
path = "/"
[config.env]
@@ -1246,7 +1247,23 @@ content = """
"""
[[config.mounts]]
filePath = "/signoz/prometheus.xml"
filePath = "/clickhouse/docker_related_config.xml"
content = """
<?xml version="1.0"?>
<clickhouse>
<!-- Overrides the docker image's default config.d/docker_related_config.xml,
which listens on the IPv6 wildcard address ([::]) first. On hosts without
IPv6 support the bind fails, so listen on IPv4 only. -->
<listen_host>0.0.0.0</listen_host>
<listen_try>1</listen_try>
<!-- Container IPs can change and DNS records (zookeeper-1, clickhouse) may not
be ready the moment ClickHouse starts. Do not cache DNS lookup failures. -->
<disable_internal_dns_cache>1</disable_internal_dns_cache>
</clickhouse>
"""
[[config.mounts]]
filePath = "/signoz/prometheus.yml"
content = """
# my global config
global:
-66
View File
@@ -1,66 +0,0 @@
services:
weblate:
image: weblate/weblate:2026.7.1.1
restart: unless-stopped
depends_on:
database:
condition: service_healthy
cache:
condition: service_healthy
volumes:
- weblate-data:/app/data
- weblate-cache:/app/cache
tmpfs:
- /run
- /tmp
environment:
WEBLATE_SITE_DOMAIN: ${WEBLATE_SITE_DOMAIN}
WEBLATE_SITE_TITLE: ${WEBLATE_SITE_TITLE}
WEBLATE_ADMIN_NAME: ${WEBLATE_ADMIN_NAME}
WEBLATE_ADMIN_EMAIL: ${WEBLATE_ADMIN_EMAIL}
WEBLATE_ADMIN_PASSWORD: ${WEBLATE_ADMIN_PASSWORD}
WEBLATE_SERVER_EMAIL: ${WEBLATE_SERVER_EMAIL}
WEBLATE_DEFAULT_FROM_EMAIL: ${WEBLATE_DEFAULT_FROM_EMAIL}
WEBLATE_ENABLE_HTTPS: ${WEBLATE_ENABLE_HTTPS}
WEBLATE_ALLOWED_HOSTS: "*"
WEBLATE_REGISTRATION_OPEN: ${WEBLATE_REGISTRATION_OPEN}
POSTGRES_HOST: database
POSTGRES_PORT: 5432
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
REDIS_HOST: cache
REDIS_PORT: 6379
database:
image: postgres:18-alpine
restart: unless-stopped
volumes:
- weblate-postgres-data:/var/lib/postgresql
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]
interval: 10s
timeout: 5s
retries: 5
cache:
image: redis:8-alpine
restart: unless-stopped
command: ["redis-server", "--save", "60", "1", "--loglevel", "warning"]
volumes:
- weblate-redis-data:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
volumes:
weblate-data:
weblate-cache:
weblate-postgres-data:
weblate-redis-data:
-18
View File
@@ -1,18 +0,0 @@
{
"id": "weblate",
"name": "Weblate",
"version": "2026.7.1.1",
"description": "Weblate is a libre web-based continuous localization platform with tight version control integration, quality checks, and support for over 50 file formats including PO, XLIFF, JSON, and Android resources.",
"logo": "weblate.svg",
"links": {
"github": "https://github.com/WeblateOrg/weblate",
"website": "https://weblate.org/",
"docs": "https://docs.weblate.org/en/latest/admin/install/docker.html"
},
"tags": [
"localization",
"translation",
"i18n",
"self-hosted"
]
}
-26
View File
@@ -1,26 +0,0 @@
[variables]
main_domain = "${domain}"
admin_password = "${password:32}"
postgres_password = "${password:32}"
[config]
env = [
"WEBLATE_SITE_DOMAIN=${main_domain}",
"WEBLATE_SITE_TITLE=Weblate",
"WEBLATE_ADMIN_NAME=Weblate Admin",
"WEBLATE_ADMIN_EMAIL=admin@${main_domain}",
"WEBLATE_ADMIN_PASSWORD=${admin_password}",
"WEBLATE_SERVER_EMAIL=weblate@${main_domain}",
"WEBLATE_DEFAULT_FROM_EMAIL=weblate@${main_domain}",
"WEBLATE_ENABLE_HTTPS=0",
"WEBLATE_REGISTRATION_OPEN=1",
"POSTGRES_USER=weblate",
"POSTGRES_PASSWORD=${postgres_password}",
"POSTGRES_DB=weblate",
]
mounts = []
[[config.domains]]
serviceName = "weblate"
port = 8080
host = "${main_domain}"
-1
View File
@@ -1 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg" id="svg31" width="300" height="300" version="1.1" viewBox="0 0 300 300"><metadata id="metadata37"/><linearGradient id="a" x1=".396" x2="98.808" y1="55.253" y2="55.253" gradientTransform="scale(0.98308415,1.0172069)" gradientUnits="userSpaceOnUse"><stop id="stop2" offset="0" stop-color="#00d2e6"/><stop id="stop4" offset="1" stop-color="#2eccaa"/></linearGradient><linearGradient id="b" x1="49.017" x2="99.793" y1="137.887" y2="113.962" gradientTransform="scale(1.1630616,0.85979965)" gradientUnits="userSpaceOnUse"><stop id="stop7" offset="0" stop-opacity="0"/><stop id="stop9" offset=".514"/><stop id="stop11" offset="1" stop-opacity="0"/></linearGradient><linearGradient id="c" x1="201.822" x2="103.577" y1="57.649" y2="57.649" gradientTransform="scale(0.98308415,1.0172069)" gradientUnits="userSpaceOnUse"><stop id="stop14" offset="0" stop-color="#1fa385"/><stop id="stop16" offset="1" stop-color="#2eccaa"/></linearGradient><g style="fill:none;fill-rule:evenodd" id="g27" transform="translate(50,76)"><path style="fill:url(#a);fill-rule:nonzero" id="path21" d="m 127.24725,111.60641 c -2.88836,-0.0145 -5.76656,-0.6024 -8.47973,-1.78467 -6.11167,-2.66259 -11.49342,-7.69116 -15.87156,-14.494798 1.24856,-2.219307 2.3738,-4.517338 3.37843,-6.853465 4.40506,-10.243222 6.50003,-21.459724 6.6607,-32.59332 -0.0233,-0.220825 -0.0416,-0.442436 -0.0552,-0.664833 l -0.0121,-0.571316 c -0.01,-4.365422 -0.67459,-8.789784 -2.17667,-12.908841 -1.73043,-4.745776 -4.4887,-9.495481 -8.86498,-11.347741 -0.79519,-0.335952 -1.63162,-0.477013 -2.464161,-0.457367 -5.504872,-10.288802 -5.679939,-20.1485266 0,-29.53713169 0.10115,0 0.20619,3.9293e-4 0.30734,0.001179 6.701161,0.0738703 13.340071,2.14184679 19.021181,5.75363459 15.46928,9.8349701 23.18193,29.0007861 23.35194,47.8180741 0.002,0.220826 -3.9e-4,0.441258 -0.007,0.66169 h 0.0868 c -0.0226,19.886801 -4.80489,40.053612 -14.87495,56.978905 z m -34.299625,31.21585 c -14.447871,5.94246 -31.22819,5.62359 -45.54931,-1.02501 C 30.922601,134.1497 18.333366,119.28527 10.57986,102.31827 -2.6824097,73.29666 -2.9858585,38.603143 9.5917057,9.1367387 19.037523,12.915521 27.43683,6.8970531 27.43683,6.8970531 c 0,0 -0.01945,9.2605109 8.94785,13.9049119 -9.200724,21.556385 -8.978973,47.166601 0.241203,68.172888 4.438911,10.107269 11.219825,19.519057 20.618957,24.841647 3.354732,1.8996 7.040998,3.12602 10.833017,3.58618 0.01404,0.0219 0.02808,0.0439 0.04214,0.0658 6.696522,10.44898 15.132208,19.1568 24.827633,25.35378 z"/><path style="opacity:.3;fill:url(#b)" id="path23" d="m 127.24298,111.61346 c -2.88693,-0.0151 -5.76363,-0.60296 -8.47546,-1.78465 -6.11266,-2.66302 -11.49516,-7.69279 -15.87368,-14.498094 1.24941,-2.220476 2.37535,-4.519788 3.38055,-6.857239 1.32817,-3.088408 2.44626,-6.264833 3.36439,-9.500982 2.12803,-7.497839 30.38184,2.018075 26.0717,14.370923 -2.22386,6.372982 -5.03943,12.509222 -8.4675,18.270042 z m -34.302088,31.21157 c -14.446351,5.93959 -31.223682,5.61979 -45.542576,-1.02778 -16.475715,-7.64755 0.447392,-33.30334 9.846524,-27.98075 3.353286,1.89878 7.037819,3.12496 10.828112,3.58558 0.01567,0.0245 0.03135,0.049 0.04704,0.0735 6.694972,10.44656 15.128303,19.15278 24.8209,25.34948 z"/><path style="fill:url(#c);fill-rule:nonzero" id="path25" d="m 56.762435,54.627505 c -0.0066,-0.220432 -0.0093,-0.440865 -0.007,-0.66169 C 56.925444,35.148526 64.638101,15.982711 80.107377,6.1477407 85.788484,2.5359528 92.427399,0.46797642 99.12856,0.39410609 c 0.10115,-7.8585e-4 0.20619,-0.001179 0.307339,-0.001179 V 29.930059 c -0.832539,-0.01965 -1.668968,0.121414 -2.46416,0.457367 -4.376276,1.85226 -7.134548,6.601965 -8.864984,11.347741 -1.502072,4.119057 -2.166936,8.543418 -2.176662,12.908841 l -0.01206,0.571316 c -0.01362,0.222397 -0.0319,0.444008 -0.05524,0.664833 0.160672,11.133595 2.255636,22.350098 6.660701,32.59332 4.933377,11.471906 12.775196,22.025153 23.847186,26.848723 8.35263,3.63969 17.61171,2.78114 25.18236,-1.5057 9.39914,-5.32259 16.18005,-14.734378 20.61896,-24.841647 9.22018,-21.006287 9.44193,-46.616503 0.24121,-68.172888 8.9673,-4.644401 8.94785,-13.9049119 8.94785,-13.9049119 0,0 8.3993,6.0184679 17.84512,2.2396856 12.57756,29.4664043 12.27412,64.1599213 -0.98815,93.1815313 -7.75351,16.967 -20.34275,31.83144 -36.81846,39.47898 -14.66669,6.80904 -31.9127,6.97917 -46.59106,0.58389 C 91.618199,136.63222 80.890116,126.27466 73.171624,114.23104 61.993036,96.788212 56.699411,75.552849 56.675679,54.627505 Z"/></g></svg>

Before

Width:  |  Height:  |  Size: 4.4 KiB