20 lines
489 B
YAML
20 lines
489 B
YAML
|
version: '2.2'
|
||
|
services:
|
||
|
gitlab:
|
||
|
image: gitlab/gitlab-ce:latest
|
||
|
restart: always
|
||
|
ports:
|
||
|
- "8443:443"
|
||
|
- "8080:80"
|
||
|
- "2222:22"
|
||
|
volumes:
|
||
|
- ./.data/gitlab/config:/etc/gitlab
|
||
|
- ./.data/gitlab/log:/var/log/gitlab
|
||
|
- ./.data/gitlab/data:/var/opt/gitlab
|
||
|
gitlab-runner:
|
||
|
image: gitlab/gitlab-runner
|
||
|
volumes:
|
||
|
- ./.data/gitlab-runner/config:/etc/gitlab
|
||
|
- /var/run/docker.sock:/var/run/docker.sock
|
||
|
depends_on:
|
||
|
- gitlab
|