-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.gitlab.yml
More file actions
59 lines (55 loc) · 1.41 KB
/
docker-compose.gitlab.yml
File metadata and controls
59 lines (55 loc) · 1.41 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
version: '3.6'
networks:
gitlab-network:
name: gitlab-network
driver: bridge
driver_opts:
com.docker.network.driver.mtu: 1400
devcontainer-network:
name: devcontainer-network
external: true
services:
gitlab:
image: gitlab/gitlab-ce:latest
container_name: gitlab
restart: always
networks:
- gitlab-network
- devcontainer-network
environment:
GITLAB_ROOT_PASSWORD: "5iveL!fe"
GITLAB_OMNIBUS_CONFIG: |
external_url 'http://gitlab'
nginx['listen_port'] = 80
gitlab_rails['gitlab_shell_ssh_port'] = 2222
registry_external_url 'http://gitlab:5001'
registry['enable'] = true
registry_nginx['listen_port'] = 5001
ports:
- '8080:80'
- '8443:443'
- '2222:22'
volumes:
- 'gitlab_config:/etc/gitlab'
- 'gitlab_logs:/var/log/gitlab'
- 'gitlab_data:/var/opt/gitlab'
shm_size: '256m'
gitlab-runner:
image: gitlab/gitlab-runner:latest
container_name: gitlab-runner
restart: always
networks:
- gitlab-network
environment:
- DOCKER_HOST=unix:///var/run/docker.sock
- CODESPACES
- CODESPACE_NAME
- GITHUB_CODESPACES_PORT_FORWARDING_DOMAIN
volumes:
- 'gitlab_runner_config:/etc/gitlab-runner'
- '/var/run/docker.sock:/var/run/docker.sock'
volumes:
gitlab_config:
gitlab_data:
gitlab_logs:
gitlab_runner_config: