-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
108 lines (101 loc) · 3.18 KB
/
docker-compose.yml
File metadata and controls
108 lines (101 loc) · 3.18 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
services:
docker-gs-ping:
image: gitlab:5050/root/docker-gs-ping:main
container_name: docker-gs-ping
restart: unless-stopped
ports:
- '8080:8080'
profiles:
- app
mailpit:
image: axllent/mailpit
container_name: mailpit
restart: unless-stopped
volumes:
- $MAIL_HOME/data:/data
environment:
MP_DATABASE: /data/mailpit.db
TZ: Europe/Vienna
ports:
- 8025:8025
profiles:
- gitlab
gitlab:
image: gitlab/gitlab-ce:18.5.2-ce.0
container_name: gitlab
restart: always
extra_hosts:
gitlab: 127.0.0.1
environment:
GITLAB_OMNIBUS_CONFIG: |
# Add any other gitlab.rb configuration here, each on its own line
external_url "https://$CI_SERVER_URL"
gitlab_rails['smtp_enable'] = true
gitlab_rails['smtp_address'] = "mailpit"
gitlab_rails['smtp_port'] = 1025
gitlab_rails['smtp_user_name'] = "smtp user"
gitlab_rails['smtp_password'] = "smtp password"
gitlab_rails['smtp_domain'] = "local"
gitlab_rails['smtp_authentication'] = "login"
registry_external_url "https://gitlab:5050"
TZ: Europe/Vienna
ports:
- '80:80'
- '5050:5050' # container registry
- '443:443'
- '22:22'
volumes:
- '$GITLAB_HOME/config:/etc/gitlab'
# - '$GITLAB_HOME/logs:/var/log/gitlab'
- '$GITLAB_HOME/data:/var/opt/gitlab'
shm_size: '256m'
profiles:
- gitlab
gitlab-runner:
image: gitlab/gitlab-runner:latest
hostname: gitlab-runner
container_name: gitlab-runner
restart: always
environment:
TZ: Europe/Vienna
volumes:
- '$GITLAB_RUNNER_HOME/config:/etc/gitlab-runner'
- /var/run/docker.sock:/var/run/docker.sock
profiles:
- gitlab
register-runner:
image: gitlab/gitlab-runner:latest
restart: 'no'
depends_on:
- gitlab
environment:
- CI_SERVER_URL=${CI_SERVER_URL}
- REGISTRATION_TOKEN=${REGISTRATION_TOKEN}
entrypoint: ["/register-runner.sh"]
volumes:
- '$GITLAB_RUNNER_HOME/config:/etc/gitlab-runner'
- ./scripts/register-runner.sh:/register-runner.sh
profiles:
- manual
prometheus:
image: prom/prometheus:latest
container_name: prometheus
restart: always
volumes:
- ./config/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
ports:
- "9090:9090"
profiles:
- monitoring
grafana:
image: grafana/grafana:latest
container_name: grafana
environment:
- GF_SERVER_ROOT_URL=http://grafana:3000/
volumes:
- ./data/grafana/:/var/lib/grafana/
restart: always
ports:
- "3000:3000"
profiles:
- monitoring