Update .env for new server and agent image versions; enhance docker-compose.yml with dynamic agent names and extra hosts; add troubleshooting guide for port allocation issues.
This commit is contained in:
@@ -15,7 +15,7 @@ services:
|
||||
- '/teamcity/logs:/opt/teamcity/logs'
|
||||
networks:
|
||||
- devops
|
||||
image: jetbrains/teamcity-server
|
||||
image: jetbrains/teamcity-server:${SERVER_IMAGE_VERSION}
|
||||
|
||||
teamcity-agent-1:
|
||||
restart: always
|
||||
@@ -23,10 +23,14 @@ services:
|
||||
environment:
|
||||
- 'SERVER_URL=teamcity-server:8111'
|
||||
- DOCKER_IN_DOCKER=start
|
||||
- AGENT_NAME=${AGENT_NAME_1}
|
||||
user: root
|
||||
privileged: true
|
||||
networks:
|
||||
- devops
|
||||
extra_hosts:
|
||||
- "host.docker.internal:host-gateway"
|
||||
- "phoenixDBE2E:host-gateway"
|
||||
volumes:
|
||||
- '/teamcity/agent:/teamcity_agent/conf'
|
||||
- '/var/run/docker.sock:/var/run/docker.sock'
|
||||
@@ -42,10 +46,14 @@ services:
|
||||
environment:
|
||||
- 'SERVER_URL=teamcity-server:8111'
|
||||
- DOCKER_IN_DOCKER=start
|
||||
- AGENT_NAME=${AGENT_NAME_2}
|
||||
user: root
|
||||
privileged: true
|
||||
networks:
|
||||
- devops
|
||||
extra_hosts:
|
||||
- "host.docker.internal:host-gateway"
|
||||
- "phoenixDBE2E:host-gateway"
|
||||
volumes:
|
||||
- '/teamcity/agent2:/teamcity_agent/conf'
|
||||
- '/var/run/docker.sock:/var/run/docker.sock'
|
||||
@@ -62,10 +70,14 @@ services:
|
||||
environment:
|
||||
- 'SERVER_URL=teamcity-server:8111'
|
||||
- DOCKER_IN_DOCKER=start
|
||||
- AGENT_NAME=${AGENT_NAME_3}
|
||||
user: root
|
||||
privileged: true
|
||||
networks:
|
||||
- devops
|
||||
extra_hosts:
|
||||
- "host.docker.internal:host-gateway"
|
||||
- "phoenixDBE2E:host-gateway"
|
||||
volumes:
|
||||
- '/teamcity/agent3:/teamcity_agent/conf'
|
||||
- '/var/run/docker.sock:/var/run/docker.sock'
|
||||
|
||||
Reference in New Issue
Block a user