GitLib
version: '3.1'
services:
web:
image: 'twang2218/gitlab-ce-zh:11.0.5'
restart: always
hostname: '192.168.27.137'
environment:
TZ: 'Asia/Shanghai'
GITLAB_OMNIBUS_CONFIG: |
external_url 'http://192.168.27.137'
gitlab_rails['gitlab_shell_ssh_port'] = 2222
unicorn['port'] = 8888
nginx['listen_port'] = 80
ports:
- '80:80'
- '8433:433'
- '2222:22'
volumes:
- /usr/local/docker/gitlab/config:/etc/gitlab
- /usr/local/docker/gitlab/data:/var/opt/gitlab
- /usr/local/docker/gitlab/logs:/var/log/gitlab
nexus
会提示没有权限创建文件, 这时候给data目录 777权限
version: '3.1'
services:
nexus:
restart: always
image: sonatype/nexus3
container_name: nexus
ports:
- 8081:8081
volumes:
- /usr/local/docker/nexus/data:/nexus-data
registry
version: '3.1'
services:
registry:
image: registry:2.7.1
restart: always
container_name: registry
ports:
- 5000:5000
volumes:
- /usr/local/docker/registry/data:/var/lib/registry
frontend:
image: konradkleine/docker-registry-frontend:v2
ports:
- 8080:80
volumes:
- /user/local/docker/registry/certs/frontend.crt:/etc/apache2/server.crt:ro
- /user/local/docker/registry/certs/frontend.key:/etc/apache2/server.key.ro
environment:
- ENV_DOCKER_REGISTRY_HOST=192.168.219.149
- ENV_DOCKER_REGISTRY_PORT=5000