Last active
September 24, 2019 09:55
-
-
Save yanmhlv/2a631695f3a03e2baa594d66b011e28e to your computer and use it in GitHub Desktop.
teamcity in docker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2.2' | |
services: | |
teamcity-server: | |
image: jetbrains/teamcity-server | |
volumes: | |
- ${TEAMCITY_PWD}/server/data:/data/teamcity_server/datadir | |
- ${TEAMCITY_PWD}/server/logs:/opt/teamcity/logs | |
ports: | |
- "8111:8111" | |
teamcity-agent: | |
image: jetbrains/teamcity-agent | |
privileged: true | |
volumes: | |
- /var/run/docker.sock:/var/run/docker.sock | |
- ${TEAMCITY_PWD}/agent/data:/data/teamcity_agent/conf | |
- ${TEAMCITY_PWD}/buildagent/work:/opt/buildagent/work | |
- ${TEAMCITY_PWD}/buildagent/temp:/opt/buildagent/temp | |
- ${TEAMCITY_PWD}/buildagent/tools:/opt/buildagent/tools | |
- ${TEAMCITY_PWD}/buildagent/plugins:/opt/buildagent/plugins | |
- ${TEAMCITY_PWD}/buildagent/system:/opt/buildagent/system | |
environment: | |
- SERVER_URL=http://teamcity-server:8111 | |
- DOCKER_IN_DOCKER=start |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TEAMCITY_PWD = /opt/teamcity | |
.PHONY: docker-down | |
docker-down: | |
docker-compose down -v --remove-orphans | |
.PHONY: docker-up | |
docker-up: docker-down | |
TEAMCITY_PWD=${TEAMCITY_PWD} docker-compose up -d |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment