-
Notifications
You must be signed in to change notification settings - Fork 36
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
83 lines (78 loc) · 2.05 KB
/
docker-compose.yaml
File metadata and controls
83 lines (78 loc) · 2.05 KB
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
version: !!str 3
services:
jenkins:
image: ssbostan/jenkins:lts-slim
restart: unless-stopped
environment:
- "DOCKER_HOST=tcp://docker:2376"
- "DOCKER_TLS_VERIFY=1"
- "TZ=Asia/Tehran"
- "JAVA_OPTS=-Duser.timezone=Asia/Tehran"
volumes:
- "jenkins_data:/var/jenkins_home"
- "docker_certs_client:/var/jenkins_home/.docker"
ports:
- "8080:8080"
- "50000:50000"
labels:
- "app.dws.name=jenkins"
- "app.dws.part-of=jenkins"
- "app.dws.scope=devops-with-saeid"
- "app.dws.created-by=ssbostan"
registry:
image: registry:2
restart: unless-stopped
environment:
- "REGISTRY_FIELDS_ENVIRONMENT=production"
- "REGISTRY_HTTP_ADDR=0.0.0.0:443"
- "REGISTRY_HTTP_TLS_CERTIFICATE=/certs/registry.crt"
- "REGISTRY_HTTP_TLS_KEY=/certs/registry.key"
volumes:
- "registry_data:/var/lib/registry"
- "./certs:/certs"
ports:
- "443:443"
labels:
- "app.dws.name=registry"
- "app.dws.part-of=jenkins"
- "app.dws.scope=devops-with-saeid"
- "app.dws.created-by=ssbostan"
docker:
image: docker:dind
restart: unless-stopped
privileged: true
command: ["--insecure-registry", "$JENKINS_DOCKER_REGISTRY_IP"]
volumes:
- "docker_data:/var/lib/docker"
- "docker_certs:/certs"
- "docker_certs_client:/certs/client"
- "jenkins_data:/var/jenkins_home"
expose:
- "2376"
labels:
- "app.dws.name=docker"
- "app.dws.part-of=jenkins"
- "app.dws.scope=devops-with-saeid"
- "app.dws.created-by=ssbostan"
gitea:
image: gitea/gitea:latest
restart: unless-stopped
environment:
- "TZ=Asia/Tehran"
volumes:
- "gitea_data:/data"
ports:
- "3000:3000"
- "2222:22"
labels:
- "app.dws.name=gitea"
- "app.dws.part-of=jenkins"
- "app.dws.scope=devops-with-saeid"
- "app.dws.created-by=ssbostan"
volumes:
jenkins_data:
registry_data:
docker_data:
docker_certs:
docker_certs_client:
gitea_data: