-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
54 lines (52 loc) · 1.4 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
version: "3"
services:
nexus:
image: sonatype/nexus3
volumes:
- ./docker-data/nexus-data:/nexus-data
ports:
- 8081:8081
container_name: nexus
restart: unless-stopped
portainer:
image: portainer/portainer-ce
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./docker-data/portainer_data:/data portainer/portainer-ce
ports:
- 8000:8000
- 9000:9000
container_name: portainer
restart: unless-stopped
deploy:
resources:
limits:
# cpus: '0.001'
memory: 1G
jenkins:
image: jenkins/jenkins:lts-jdk8
# image: myjenkins-blueocean:2.387.2-1
privileged: true
user: root
ports:
- 8899:8080
- 50000:50000
container_name: jenkins
volumes:
- ./docker-data/jenkins-data-jdk8:/var/jenkins_home
- /var/run/docker.sock:/var/run/docker.sock
- /usr/lib/jvm/java-8-openjdk-amd64:/opt/openjdk
- /home/vanchung1995/Downloads/apache-maven-3.9.1:/opt/maven-3.9.1
- ./docker-data/jenkins-docker-certs:/certs/client:ro
# - ./docker-data/jenkins-docker-certs:/certs/client:ro
restart: unless-stopped
environment:
- JAVA_OPTS="-Dhudson.plugins.git.GitSCM.ALLOW_LOCAL_CHECKOUT=true"
deploy:
resources:
limits:
# cpus: '0.001'
memory: 1G
# reservations:
# cpus: '0.0001'
# memory: 20M