Skip to content
This repository has been archived by the owner on Mar 23, 2021. It is now read-only.

Commit

Permalink
feat(dockerfile): 新增jenkins-gitlab联合启动的Compose文件,更新卷的命名
Browse files Browse the repository at this point in the history
  • Loading branch information
zjZSTU committed Jan 2, 2020
1 parent 1c7f16b commit f281e65
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 8 deletions.
4 changes: 3 additions & 1 deletion dockerfiles/gitlab/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
version: "3.7"
services:
jenkins:
gitlab:
labels:
AUTHOR: "zhujian <zjzstu@github.com>"
container_name: gitlab
image: gitlab/gitlab-ce:latest
volumes:
Expand Down
33 changes: 33 additions & 0 deletions dockerfiles/jenkins-gitlab/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
version: "3.7"
services:
jenkins:
labels:
AUTHOR: "zhujian <zjzstu@github.com>"
container_name: jenkins
image: jenkins/jenkins
volumes:
- "jenkins_home:/var/jenkins_home"
ports:
- "7070:8080"
- "50000:50000"
restart: always
tty: true
stdin_open: true
gitlab:
labels:
AUTHOR: "zhujian <zjzstu@github.com>"
container_name: gitlab
image: gitlab/gitlab-ce:latest
volumes:
- "/srv/gitlab/config:/etc/gitlab"
- "/srv/gitlab/logs:/var/log/gitlab"
- "/srv/gitlab/data:/var/opt/gitlab"
ports:
- "7010:7010"
- "7020:22"
restart: always
tty: true
stdin_open: true
volumes:
jenkins_home:
external: true
7 changes: 5 additions & 2 deletions dockerfiles/jenkins/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
version: "3.7"
services:
jenkins:
labels:
AUTHOR: "zhujian <zjzstu@github.com>"
container_name: jenkins
image: jenkins/jenkins
volumes:
- "home:/var/jenkins_home"
- "jenkins_home:/var/jenkins_home"
ports:
- "7070:8080"
- "50000:50000"
restart: always
tty: true
stdin_open: true
volumes:
home:
jenkins_home:
external: true
8 changes: 3 additions & 5 deletions dockerfiles/ubuntu/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
version: "3.7"
services:
ubuntu:
labels:
AUTHOR: "zhujian <zjzstu@github.com>"
container_name: ubuntu
image: 'zjzstu/ubuntu:latest'
build: .
Expand All @@ -9,8 +11,4 @@ services:
- QT_IM_MODULE="fcitx"
- GTK_IM_MODULE="fcitx"
tty: true
stdin_open: true
volumes:
- "home:/var/uhome"
volumes:
home:
stdin_open: true

0 comments on commit f281e65

Please sign in to comment.