docker-compose编排Jenkins和gitlab文件

[root@master flannel]# cat jenkins.yaml
version: '2'
services:
jenkins:
image: jenkins/jenkins:latest
restart: always
user: root
ports:
- 8080:8080
- 50000:50000
expose:
- 8080
- 50000
privileged: true
volumes:
- /docker/jenkins/jenkins:/var/jenkins_home
- /docker/jenkins/docker.sock:/var/run/docker.sock

 

[root@master flannel]# cat gitlab.yaml

version: '3.1'
services:
gitlab:
image: 'gitlab/gitlab-ce:latest'
container_name: "gitlab"
restart: always
environment:
TZ: 'Asia/Shanghai'
GITLAB_OMNIBUS_CONFIG: |
external_url 'http://192.168.150.3:8929'
gitlab_rails['time_zone'] = 'Asia/Shanghai'
gitlab_rails['gitlab_shell_ssh_port'] = 2224
ports:
- '8929:8929'
- '2224:2224'
volumes:
- './config:/etc/gitlab'
- './logs:/var/log/gitlab'
- './data:/var/opt/gilab'

posted @ 2021-11-13 19:00  君邪不邪  阅读(134)  评论(0编辑  收藏  举报