Compare commits

..
8 Commits
2 changed files with 57 additions and 1 deletions

No files matched your search

+1 -1
View File
@@ -1,4 +1,4 @@
FROM jetbrains/teamcity-agent
RUN curl -sL https://deb.nodesource.com/setup_11.x | bash - \
RUN curl -sL https://deb.nodesource.com/setup_12.x | bash - \
&& apt-get install -y nodejs build-essential nano
+56
View File
@@ -0,0 +1,56 @@
version: '3.4'
services:
mysql:
image: mysql
environment:
MYSQL_ROOT_PASSWORD: "${MYSQL_ROOT_PASSWORD}"
MYSQL_DATABASE: teamcity
MYSQL_USER: teamcity
MYSQL_PASSWORD: "${MYSQL_PASSWORD}"
command: mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_bin
volumes:
- '/var/data/mysql:/var/lib/mysql'
restart: always
server:
image: 'jetbrains/teamcity-server'
volumes:
- '/var/data/teamcity/server:/data/teamcity_server/datadir'
- '/var/log/teamcity/server:/opt/teamcity/logs'
environment:
TZ: Europe/Moscow
ports:
- '80:8111'
restart: always
agent-white:
build:
context: .
volumes:
- '/var/data/teamcity/agent-white:/data/teamcity_agent/conf'
- '/var/run/docker.sock:/var/run/docker.sock'
- '/opt/buildagent/white/work:/opt/buildagent/work'
- '/opt/buildagent/white/temp:/opt/buildagent/temp'
- '/root/.docker/config.json:/root/.docker/config.json'
environment:
SERVER_URL: http://server:8111
AGENT_NAME: 'White'
WORK_VOL: /opt/buildagent/white/work
restart: always
agent-black:
build:
context: .
volumes:
- '/var/data/teamcity/agent-black:/data/teamcity_agent/conf'
- '/var/run/docker.sock:/var/run/docker.sock'
- '/opt/buildagent/black/work:/opt/buildagent/work'
- '/opt/buildagent/black/temp:/opt/buildagent/temp'
- '/root/.docker/config.json:/root/.docker/config.json'
environment:
SERVER_URL: http://server:8111
AGENT_NAME: 'Black'
WORK_VOL: /opt/buildagent/black/work
restart: always