-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
73 lines (71 loc) · 2.07 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
version: '3.7'
networks:
backend:
services:
jenkins:
image: "nc/jenkins-master-dev:${JENKINS_IMAGE_VERSION:-latest}"
build:
context: ./master
dockerfile: Dockerfile
args:
jenkins_master_pass: "${JENKINS_MASTER_PASS:-123}"
jenkins_slave_port: "${JENKINS_SLAVE_PORT:-50000}"
jenkins_slave_pass: "${JENKINS_SLAVE_PASS:-123}"
jenkins_config_repo_provider: "${JENKINS_CONFIG_REPO_PROVIDER:-git}"
jenkins_config_repo_url: [email protected]:<user>/<repo>.git
shm_size: '40gb'
volumes:
- /var/run/docker.sock:/var/run/docker.sock
networks:
backend:
restart: always
jenkins-nginx:
image: "nc/jenkins-master-nginx-dev:${JENKINS_NGINX_IMAGE_VERSION:-latest}"
build:
context: ./nginx
dockerfile: Dockerfile
depends_on:
- jenkins
networks:
backend:
ports:
- "80:80"
- "443:443"
restart: always
jenkins-build-slave:
image: "nc/jenkins-standard-build-slave-dev:${JENKINS_STANDARD_SLAVE_IMAGE_VERSION:-latest}"
build:
context: slaves/standard_build_slave
dockerfile: Dockerfile
args:
jenkins_slave_pass: "${JENKINS_SLAVE_PASS:-123}"
agent_name: standard_build
cli_url: "${JENKINS_CLI_URL:-http://jenkins:8080}"
jnlp_user: "${JENKINS_JNLP_USER:-jenkins-slave}"
labels: standard_build
shm_size: '20gb'
depends_on:
- jenkins
volumes:
- /var/run/docker.sock:/var/run/docker.sock
networks:
backend:
restart: always
jenkins-deploy-slave:
image: "nc/jenkins-deploy-slave-dev:${JENKINS_DEPLOY_SLAVE_IMAGE_VERSION:-latest}"
build:
context: slaves/deploy_slave
dockerfile: Dockerfile
args:
jenkins_slave_pass: "${JENKINS_SLAVE_PASS:-123}"
agent_name: deploy
cli_url: "${JENKINS_CLI_URL:-http://jenkins:8080}"
jnlp_user: "${JENKINS_JNLP_USER:-jenkins-slave}"
labels: deploy
depends_on:
- jenkins
volumes:
- /var/run/docker.sock:/var/run/docker.sock
networks:
backend:
restart: always