准备
docker-compose 配置项目地址: https://github.com/JetBrains/teamcity-docker-samples
teamCity 与teamAgent的docker-compose.yml 配置文件
[[teamcity-docker-samples-master.zip]]
以下docker-compose-ubuntu 为例:
修改配置文件
在这里插入图片描述
.evn 可以把docker-composer配置的静态的属性配置到这个文件夹例,在docker-compose里使用
配置信息
version: '3.1'
# Default ${TEAMCITY_VERSION} is defined in .env file
# ./buildserver_pgdata - Posgres DB data
# ./data_dir - TeamCity data directory
# ./teamcity-server-logs - 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:
nginx:
db:
image: postgres:latest