{"id":19344365,"url":"https://github.com/egregors/teamcity-docker-compose","last_synced_at":"2025-07-21T23:32:14.373Z","repository":{"id":56121258,"uuid":"61874385","full_name":"egregors/teamcity-docker-compose","owner":"egregors","description":"Compose to create working TeamCity server with PostgreSQL and Agents","archived":false,"fork":false,"pushed_at":"2020-11-25T03:33:02.000Z","size":497,"stargazers_count":95,"open_issues_count":1,"forks_count":48,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-04-23T04:44:31.629Z","etag":null,"topics":["ci","docker","docker-compose","teamcity","teamcity-server"],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/egregors.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-06-24T09:43:44.000Z","updated_at":"2025-03-30T19:46:19.000Z","dependencies_parsed_at":"2022-08-15T13:20:23.420Z","dependency_job_id":null,"html_url":"https://github.com/egregors/teamcity-docker-compose","commit_stats":null,"previous_names":[],"tags_count":29,"template":false,"template_full_name":null,"purl":"pkg:github/egregors/teamcity-docker-compose","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egregors%2Fteamcity-docker-compose","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egregors%2Fteamcity-docker-compose/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egregors%2Fteamcity-docker-compose/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egregors%2Fteamcity-docker-compose/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/egregors","download_url":"https://codeload.github.com/egregors/teamcity-docker-compose/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egregors%2Fteamcity-docker-compose/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266403053,"owners_count":23923403,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-21T11:47:31.412Z","response_time":64,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ci","docker","docker-compose","teamcity","teamcity-server"],"created_at":"2024-11-10T03:43:15.880Z","updated_at":"2025-07-21T23:32:14.336Z","avatar_url":"https://github.com/egregors.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# teamcity-docker-compose\nCompose to create working [TeamCity](https://www.jetbrains.com/teamcity/) server with PostgreSQL and Agents\n\n![state](https://img.shields.io/badge/state-stable-brightgreen.svg)\n![ssl](https://img.shields.io/badge/HTTPs-traefik-brightgreen.svg)\n\n**This configuration use only official images:**\n\n[teamcity server](https://hub.docker.com/r/jetbrains/teamcity-server/),\n[teamcity agent](https://hub.docker.com/r/jetbrains/teamcity-minimal-agent/),\n[postgres](https://hub.docker.com/_/postgres/),\n[traefik](https://hub.docker.com/_/traefik)\n\n# How to use\n\nClone this repository or download the zip.\n\n```\ngit clone https://github.com/egregors/teamcity-docker-compose.git\n```\n\n## Configuration\n\nAll you need is to set a few ENV variables in the `example.env` file.\n\nSet your Postgres username and password in `env.example` \n\nSet your `VIRTUAL_HOST` and ACME credential (`LETSENCRYPT_HOST`, `LETSENCRYPT_EMAIL`)\n\n**After all rename `env.example` to `.env`**\n\nDon't push `.env` file in public repositories!\n\nIt's all. PostgreSQL already configured according to the\nJetBrains [recommendations](https://confluence.jetbrains.com/pages/viewpage.action?pageId=74847395#HowTo...-ConfigureNewlyInstalledPostgreSQLServer)\n\n### HTTPs support\n\nHTTPs entry point is enabled by default thanks to [traefik](https://traefik.io/)\n\nIf you don't need HTTPs support – use `docker-compose-nossl.yml`\n\n## Build and setup\n\nNext, build the images:\n`make build`\n\nor\n\n```\ndocker-compose -f docker-compose.yml build\n```\n\nNow you may start up the service and continue configuring settings in Web Interface: `make up`\n\nor\n\n```\nmkdir -p /opt/traefik \u0026\u0026 touch /opt/traefik/acme.json \u0026\u0026 chmod 600 /opt/traefik/acme.json\ndocker-compose -f docker-compose.yml up -d \u0026\u0026 docker-compose -f docker-compose.yml logs -f -t --tail=10\n```\n\nAfter initialisation Web Interface will be available on `https://yourdockerhost/`\n\n\n### Setup DB\n\nOpen `https://yourdockerhost/`\n\nSet PostgreSQL as database type, download `JDBC driver`\n\n![Alt text](raw/img/1.png?raw=true)\n\nConfigure DB connection:\n\n![Alt text](raw/img/2.png?raw=true)\n\nAuthorize your Agent:\n\n![Alt text](raw/img/3.png?raw=true)\n\nDone, TeamCity ready to work.\n\n## Scaling\n\nScaling your workers (agents) supported as well. Just use `docker-compose scale` command:\n\n```\ndocker-compose scale teamcity-agent=3\n```\n**Keep in mind: currently, agents are stateless**\n\n\n## Backup / restore\n\nYou may use JetBrains way to [backup](https://confluence.jetbrains.com/display/TCD10/TeamCity+Data+Backup) \nor [restore](https://confluence.jetbrains.com/display/TCD10/Restoring+TeamCity+Data+from+Backup) your server\n\n\n## Update\n\nIf you see a notice that a new version is available, you may update your TeamCity that way:\n\nuse `make` (set your compose file name in Makefile, by default it is `docker-compose.yml`)\n\n```\nmake update\n```\n\nor\n\n```\n# stop and remove old containers\ndocker-compose stop\ndocker-compose down --rmi all\n\n# build new version\ndocker-compose build --pull --no-cache\n\n# create and up new containers\ndocker-compose up -d\n```\n\nAfter an update, you need to reauthorize your agents.\n\n### Updating maintenance\n\nSometimes, during update you may get «maintenance is required» message instead of login page. \nIt's ok! To login in a maintenance mode you need to enter an authentication token. You may find it in the logs:\n`docker-compose logs -f`\n\nTry to find something like this:\n\n```\nteamcity-server_1                    | [TeamCity] Administrator can login from web UI using authentication token: 8755994969038184734\n```\n\n## Platform-specific agents\n\nYou can use my preconfigured custom agents with already installed necessary dependencies\n\n### Python 3 | Node.js 11, yarn 1.15\n\nAgent [info](agents/python-node-yarn/README.md)\n\n### Ruby | Bundle\n\nAgent [info](agents/bundler-ruby/README.md)\n\n### Node 14\n\nAgent [info](agents/node-14/README.md)\n\n## Contributing\n\nBug reports, bug fixes and new features are always welcome.\nPlease open issues and submit pull requests for any new code.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fegregors%2Fteamcity-docker-compose","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fegregors%2Fteamcity-docker-compose","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fegregors%2Fteamcity-docker-compose/lists"}