Skip to content

Commit

Permalink
teamcity
Browse files Browse the repository at this point in the history
  • Loading branch information
qiaofeng1227 committed Dec 8, 2023
1 parent b33928f commit 899e18a
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 21 deletions.
18 changes: 9 additions & 9 deletions apps/teamcity/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,38 +1,38 @@
# image: https://hub.docker.com/r/jetbrains/teamcity-server
# docs: https://www.jetbrains.com/help/teamcity/teamcity-documentation.html
# docker: https://github.com/JetBrains/teamcity-docker-server
# https://github.com/JetBrains/teamcity-docker-server
# compose: https://github.com/JetBrains/teamcity-docker-samples/blob/master/compose-ubuntu/docker-compose.yml

version: '3.8'
services:
teamcity-server:
image: ${W9_REPO}:${W9_VERSION}
container_name: ${W9_ID}
image: jetbrains/teamcity-server:${W9_VERSION}
container_name: ${W9_NAME}
restart: unless-stopped
depends_on:
- teamcity-db
env_file: .env
ports:
- "${W9_HTTP_PORT_SET}:8111"
- "${W9_HTTP_PORT}:8111"
volumes:
- data:/data/teamcity_server/datadir
- logs:/opt/teamcity/logs

teamcity-agent-1:
image: ${W9_REPO}:${W9_VERSION}-linux-sudo
image: jetbrains/teamcity-agent:${W9_VERSION}-linux-sudo
privileged: true
volumes:
- ./src/agents/agent1/conf:/data/teamcity_agent/conf
- ./src/agents/agent1-1/conf:/data/teamcity_agent/conf
environment:
- DOCKER_IN_DOCKER=start

teamcity-db:
image: mysql:8.0
container_name: ${W9_ID}-db
container_name: ${W9_NAME}-db
environment:
- MYSQL_ROOT_PASSWORD=${W9_POWER_PASSWORD}
- MYSQL_DATABASE=${W9_ID}
- MYSQL_USER=${W9_ID}
- MYSQL_DATABASE=${W9_NAME}
- MYSQL_USER=${W9_NAME}
- MYSQL_PASSWORD=${W9_POWER_PASSWORD}
volumes:
- mysql_data:/var/lib/mysql
Expand Down
12 changes: 12 additions & 0 deletions apps/teamcity/src/agents/agent-1/conf/buildAgent.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name=Agent 1-2
ownPort=9090
serverUrl=http\://teamcity\:8111

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

teamcity.docker.use.sudo=true


authorizationToken=71723e836df10d65390420820fe3451c
12 changes: 12 additions & 0 deletions apps/teamcity/src/agents/agent-2/conf/buildAgent.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name=Agent 2-1
ownPort=9090
serverUrl=http\://teamcity\:8111

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

teamcity.docker.use.sudo=true


authorizationToken=5881d299516ed1b39a3ce8c2dc05ee00
12 changes: 0 additions & 12 deletions apps/teamcity/src/agents/agent1/conf/buildAgent.properties

This file was deleted.

0 comments on commit 899e18a

Please sign in to comment.