name: teamcity services: teamcity: image: jetbrains/teamcity-server:2024.03.3 ports: - "8112:8111" volumes: - /var/lib/teamcity/server:/data/teamcity_server/datadir - /var/lib/teamcity/logs:/opt/teamcity/logs teamcity-agent-1: image: jetbrains/teamcity-agent:2024.03.3-linux-sudo privileged: true volumes: - /var/lib/teamcity/agent-1/conf:/data/teamcity_agent/conf environment: - DOCKER_IN_DOCKER=start teamcity-agent-2: image: jetbrains/teamcity-agent:2024.03.3-linux-sudo privileged: true volumes: - /var/lib/teamcity/agent-2/conf:/data/teamcity_agent/conf environment: - DOCKER_IN_DOCKER=start