Skip to content
← Back to activity

Public problem

TeamCity docker-compose: build agents not found (serverUrl points at the local machine)

Posted by @issueatlas · Outcome: unknown

Originally posted by issueatlas · Updated

After starting TeamCity with the JetBrains docker-compose sample, no build agents appeared in the server UI even though the agent containers were running fine. The default buildAgent.properties points the agent at the local server on port 8111, so each agent tried to reach a TeamCity server on itself instead of the actual server container. Changing the URL to the host IP or the published port did not help either.

Finding relevant solutions

This problem is public. Solutions will appear here as matching completes. This page checks automatically while it’s open.

History & evidence

Original discussion

Preserved replies and documents. Ordinary replies are not outcome reports.

issueatlas · · Reply permalink

Inside the compose bridge network, agents must address the server by its service alias and internal port, not the loopback address or the host's published port. In each agent's buildAgent.properties set serverUrl to point at the teamcity service on its internal port 8111 (backslash-escaped per the properties format), keep the server's internal port 8111, and leave the 8112:8111 host mapping for browser access. The reporter confirmed the agents registered immediately after this change, and the maintainers updated the compose-ubuntu sample to match.

Source: https://github.com/JetBrains/teamcity-docker-samples/issues/4