2022-02-08 17:00:27 -08:00
|
|
|
version: '3.3'
|
|
|
|
services:
|
|
|
|
gitlab:
|
|
|
|
image: 'gitlab/gitlab-ee:latest'
|
2022-04-22 13:06:19 -07:00
|
|
|
container_name: gitlab_gitlab
|
2022-02-08 17:00:27 -08:00
|
|
|
restart: unless-stopped
|
|
|
|
hostname: 'gitlab.jafner.net'
|
|
|
|
networks:
|
|
|
|
- web
|
|
|
|
environment:
|
|
|
|
GITLAB_OMNIBUS_CONFIG: |
|
|
|
|
external_url 'https://gitlab.jafner.net'
|
2022-03-02 15:22:29 -08:00
|
|
|
registry_external_url 'https://gitlab.jafner.net'
|
2022-02-08 17:00:27 -08:00
|
|
|
gitlab_rails['gitlab_shell_ssh_port'] = 2229
|
|
|
|
nginx['listen_https'] = false
|
|
|
|
nginx['listen_port'] = 80
|
2022-05-02 09:29:12 -07:00
|
|
|
gitlab_rails['monitoring_whitelist'] = ['127.0.0.0/8', '192.168.1.0/24']
|
2022-04-04 16:52:36 -07:00
|
|
|
gitlab_rails['smtp_enable'] = true
|
|
|
|
gitlab_rails['smtp_address'] = "smtp.gmail.com"
|
|
|
|
gitlab_rails['smtp_port'] = 465
|
|
|
|
gitlab_rails['smtp_user_name'] = "noreply@jafner.net"
|
2022-04-04 23:33:36 -07:00
|
|
|
gitlab_rails['smtp_password'] = "kvdunrhjsqbslson"
|
2022-04-04 16:52:36 -07:00
|
|
|
gitlab_rails['smtp_domain'] = "jafner.net"
|
|
|
|
gitlab_rails['smtp_authentication'] = "login"
|
|
|
|
gitlab_rails['smtp_enable_starttls_auto'] = true
|
|
|
|
gitlab_rails['smtp_openssl_verify_mode'] = 'peer'
|
|
|
|
gitlab_rails['gitlab_email_from'] = 'gitlab@jafner.net'
|
|
|
|
gitlab_rails['gitlab_email_reply_to'] = 'noreply@jafner.net'
|
2022-02-08 17:00:27 -08:00
|
|
|
ports:
|
|
|
|
- '2229:22'
|
2022-03-01 21:36:44 -08:00
|
|
|
- '5050:5050'
|
2022-02-08 17:00:27 -08:00
|
|
|
volumes:
|
2022-02-25 12:13:17 -08:00
|
|
|
- '${DOCKER_DATA}/config:/etc/gitlab'
|
2022-02-08 17:00:27 -08:00
|
|
|
- '${DOCKER_DATA}/logs:/var/log/gitlab'
|
|
|
|
- '${DOCKER_DATA}/data:/var/opt/gitlab'
|
|
|
|
shm_size: '256m'
|
|
|
|
labels:
|
|
|
|
- traefik.http.routers.gitlab.rule=Host(`gitlab.jafner.net`)
|
|
|
|
- traefik.http.routers.gitlab.tls.certresolver=lets-encrypt
|
|
|
|
- traefik.http.services.gitlab.loadbalancer.server.port=80
|
2022-03-02 10:07:31 -08:00
|
|
|
gitlab-runner:
|
|
|
|
image: 'gitlab/gitlab-runner:latest'
|
2022-04-22 13:06:19 -07:00
|
|
|
container_name: gitlab_runner
|
2022-03-02 10:07:31 -08:00
|
|
|
restart: always
|
2022-03-02 15:04:45 -08:00
|
|
|
environment:
|
|
|
|
- GODEBUG="x509ignoreCN=0"
|
2022-03-02 10:07:31 -08:00
|
|
|
volumes:
|
|
|
|
- ${DOCKER_DATA}/runner-config:/etc/gitlab-runner
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
2022-04-29 11:34:17 -07:00
|
|
|
labels:
|
|
|
|
- traefik.enable=false
|
2022-02-08 17:00:27 -08:00
|
|
|
|
|
|
|
networks:
|
|
|
|
web:
|
2022-02-25 12:13:17 -08:00
|
|
|
external: true
|