-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
72 lines (67 loc) · 1.29 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
services:
nginx:
image: eldoranstars/nginx_centos
container_name: nginx
ports:
- 8080:80
networks:
frontend:
ipv4_address: 172.26.0.10
backend:
ipv4_address: 172.25.0.10
volumes:
- ./volume_nginx:/etc/nginx/conf.d
depends_on:
- nexus
- jenkins
- tomcat
nexus:
image: eldoranstars/nexus
mem_limit: 2g
cpus: 0.45
container_name: nexus
ports:
- 8081:8081
networks:
- backend
volumes:
- ./volume_nexus:/nexus-data
environment:
- NEXUS_CONTEXT=nexus
jenkins:
image: eldoranstars/jenkins
mem_limit: 500m
cpus: 0.75
container_name: jenkins
ports:
- 8082:8080
networks:
- backend
volumes:
- ./volume_jenkins:/var/jenkins_home
environment:
- JENKINS_OPTS="--prefix=/jenkins"
tomcat:
image: eldoranstars/tomcat
container_name: tomcat
ports:
- 8084:8080
networks:
- backend
#volumes:
# volume_nginx: {}
# volume_jenkins: {}
# volume_nexus: {}
networks:
frontend:
driver: bridge
ipam:
config:
- subnet: 172.26.0.0/16
gateway: 172.26.0.1
backend:
driver: bridge
ipam:
config:
- subnet: 172.25.0.0/16
gateway: 172.25.0.1