1 comment

Any updates ?

My docker-compose

version: '3.1'


# Default ${TEAMCITY_VERSION} is defined in .env file

# ./buildserver_pgdata - Posgres DB data
# ./data_dir - TeamCity data directory
# ./log_dir - logs of primary TeamCity server
# ./agents/agent-1/conf - configuration directory for the first build agent
# ./agents/agent-1/conf - configuration directory for the second build agent

services:
  teamcity:
    image: jetbrains/teamcity-server:${TEAMCITY_VERSION}
    ports:
      - "8112:8111"
    container_name: "teamcity-server"
    volumes:
      - ./data_dir:/data/teamcity_server/datadir
      - ./log_dir:/opt/teamcity/logs
    depends_on:
      - db
  teamcity-agent-1:
    image: jetbrains/teamcity-agent:${TEAMCITY_VERSION}
    privileged: true
    volumes:
      - ./agents/agent-1/conf:/data/teamcity_agent/conf    
    environment:
      - AGENT_NAME="Agent"
      - SERVER_URL=http://teamcity:8111
      - DOCKER_IN_DOCKER=start  
  db:
    image: postgres:latest
    container_name: "teamcity-database"
    restart: always
    environment:
      - POSTGRES_PASSWORD=teamcity_password
      - POSTGRES_USER=teamcity_user
      - POSTGRES_DB=teamcity_db
      - PG_DATA=/var/lib/postgresql/data
    volumes:
      - ./buildserver_pgdata:/var/lib/postgresql/data
    ports:
      - 5433:5432

buildAgent.properties

name=Agent
ownPort=9090
serverUrl=http\://localhost\:8112

workDir=../work
tempDir=../temp
systemDir=../system

teamcity.docker.use.sudo=true

NOTE:- I have tried with both (8111, 8112) PORTS inside my buildAgent.propeties

0

Please sign in to leave a comment.