-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
37 lines (34 loc) · 939 Bytes
/
docker-compose.yml
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
version: '3.7'
services:
web:
image: 'gitlab/gitlab-ce:latest'
restart: always
hostname: 'gitlab.local'
environment:
GITLAB_OMNIBUS_CONFIG: |
external_url 'http://gitlab.local:8090'
# Add any other gitlab.rb configuration here, each on its own line
registry_external_url 'http://gitlab.local:5050'
registry['enable'] = true
ports:
- '8090:8090'
- '443:443'
- '22:22'
volumes:
- './gitlab-config:/etc/gitlab'
- './gitlab-logs:/var/log/gitlab'
- './gitlab-data:/var/opt/gitlab'
networks:
- gitlab-network
runner1:
image: gitlab/gitlab-runner:latest
container_name: gitlab-runner1
hostname: gitlab-runner1
volumes:
- './gitlab-runner1-config:/etc/gitlab-runner:Z'
- '/var/run/docker.sock:/var/run/docker.sock'
networks:
- gitlab-network
networks:
gitlab-network:
name: gitlab-network