-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathdocker-compose.yml
74 lines (67 loc) · 2.12 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
74
# =================================================================================
# Project: https://github.com/gmacario/easy-jenkins
#
# File: docker-compose.yml
#
# References:
# - Compose file reference: https://docs.docker.com/compose/compose-file/
# =================================================================================
version: '3.3'
services:
myjenkins:
# image: jenkins:latest
build: myjenkins
environment:
- CASC_JENKINS_CONFIG
# - CASC_JENKINS_CONFIG:${CASC_JENKINS_CONFIG}
# - CASC_JENKINS_CONFIG:/var/jenkins_home/casc_configs/default.yaml
# - CASC_JENKINS_CONFIG:/var/jenkins_home/casc_configs
ports:
- "9080:8080"
- "50000:50000"
# tty: true
# privileged: true
network_mode: "bridge"
volumes:
- jenkins_home:/var/jenkins_home
- /var/run/docker.sock:/var/run/docker.sock
- "${PWD}/casc_configs:/var/jenkins_home/casc_configs:ro"
secrets:
- adminpw # Initial administrator user password
# - gpmacariopw
# - agent_private_key # SSH private key for connecting ssh slaves
# - github # Github username with password as an example
# build-yocto-slave:
# image: gmacario/build-yocto:latest
# user: jenkins
# entrypoint: ""
# command: "java -jar /usr/share/jenkins/slave.jar -jnlpUrl http://master:8080/computer/build-yocto-slave/slave-agent.jnlp"
# links:
# - myjenkins:master
# volumes:
# - data:/home/jenkins
nexus:
image: sonatype/nexus3:latest
ports:
- "9081:8081"
- "9123:9123"
network_mode: "bridge"
# Be careful with newlines in your secrets, make sure to remove them
# before running docker-compose up.
secrets:
adminpw:
file: ${PWD}/secrets/adminpw
# gpmacariopw:
# file: ${PWD}/secrets/gpmacariopw
# agent_private_key:
# # This should point to the private key you want your jenkins master to use
# # when connecting to slaves. For example in AWS this would be your .pem file
# file: ~/.ssh/id_rsa
# github:
# file: /var/deploy/secrets/github
volumes:
jenkins_home:
# data:
# downloads:
# sstate-cache:
# EOF