-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml.template
88 lines (80 loc) · 1.71 KB
/
docker-compose.yaml.template
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
version: "3.9"
services:
gitlab:
image: 'gitlab/gitlab-ce:15.0.0-ce.0'
restart: always
container_name: gitlab
cpu_shares: 1024
mem_limit: '4g'
environment:
GITLAB_OMNIBUS_CONFIG: |
external_url 'https://${GITLAB_DOMAIN_NAME}'
puma['worker_processes'] = 0
nginx['listen_port'] = 9080
nginx['listen_https'] = false
sidekiq['max_concurrency'] = 10
prometheus_monitoring['enable'] = false
expose:
- 9080
volumes:
- gitlab_config:/etc/gitlab
- gitlab_logs:/var/log/gitlab
- gitlab_data:/var/opt/gitlab
networks:
- devops-net
jenkins:
build: ./images/jenkins/
restart: always
container_name: jenkins
cpu_shares: 500
mem_limit: '1g'
volumes:
- jenkins_data:/var/jenkins_home
- /var/run/docker.sock:/var/run/docker.sock
expose:
- 8080
networks:
- devops-net
nexus:
image: sonatype/nexus3:3.39.0
restart: always
container_name: nexus
cpu_shares: 500
mem_limit: '2g'
volumes:
- nexus_data:/nexus-data
expose:
- 8081
networks:
- devops-net
proxy:
image: nginx:1.21.6
restart: always
container_name: proxy
cpu_shares: 500
mem_limit: '2g'
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
- ./pki:/var/pki
ports:
- "80:80"
- "443:443"
networks:
- devops-net
# pki:
# image: cfssl/cfssl
# restart: always
# container_name: pki
# cpu_shares: 500
# mem_limit: '2g'
# volumes:
# - ./pki:/var/pki
volumes:
nexus_data: {}
jenkins_data: {}
gitlab_config: {}
gitlab_logs: {}
gitlab_data: {}
networks:
devops-net:
driver: bridge