-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
35 lines (33 loc) · 930 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
35 lines (33 loc) · 930 Bytes
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
services:
gitlab:
image: gitlab/gitlab-ce:latest
container_name: ${GITLAB_CONTAINER_NAME}
environment:
GITLAB_OMNIBUS_CONFIG: |
external_url '${GITLAB_URL}'
registry_external_url '${GITLAB_REGISTRY_EXTERNAL_URL}'
gitlab_rails['gitlab_shell_ssh_port'] = ${GITLAB_SSH_PORT}
ports:
- "${GITLAB_HTTP_PORT}:80"
- "${GITLAB_SSH_PORT}:22"
- "${GITLAB_REGISTRY_PORT}:5050"
volumes:
- config:/etc/gitlab
- data:/var/opt/gitlab
- logs:/var/log/gitlab
shm_size: '8gb'
restart: unless-stopped
gitlab-runner:
image: gitlab/gitlab-runner:latest
container_name: ${GITLAB_RUNNER_CONTAINER_NAME}
restart: unless-stopped
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- runner-config:/etc/gitlab-runner
extra_hosts:
- "${GITLAB_HOST}:host-gateway"
volumes:
config:
data:
logs:
runner-config: