I’m self-hosting an instance in my server running in a docker container and I’m quite happy with it.
Inside my LAN, I can access my service without any issues.
From outside my LAN, I can also access it but I’m not able to pull/push neither by ssh nor by https.
I guess this must be due to a misconfiguration in my docker-compose
or my router.
My docker-compose
file:
version: '3.6'
services:
# GITLAB ==> Version control repository
gitlab:
image: 'gitlab/gitlab-ce:15.4.2-ce.0'
container_name: gitlab
restart: unless-stopped
environment:
GITLAB_OMNIBUS_CONFIG: |
external_url 'https://git.mydomain.com:33333'
nginx['listen_https'] = false
nginx['listen_port'] = 80
gitlab_rails['gitlab_shell_ssh_port'] = 10222
gitlab_rails['time_zone'] = 'Europe/Berlin'
puma['worker_processes'] = 0
sidekiq['concurrency'] = 5
postgresql['shared_buffers'] = "256MB"
# Add any other gitlab.rb configuration here, each on its own line
ports:
- "33333:33333"
- "10222:22"
networks:
- admin_network
volumes:
- /media/Storage_Server/Gitlab/config:/etc/gitlab
- /media/Storage_Server/Gitlab/logs:/var/log/gitlab
- /media/Storage_Server/Gitlab/data:/var/opt/gitlab
shm_size: '256m'
labels:
- traefik.enable=true
- traefik.http.routers.gitlab.rule=Host(`git.mydomain.com`)
- traefik.http.routers.gitlab.entrypoints=secure
- traefik.http.routers.gitlab.tls.certresolver=le
- traefik.http.services.gitlab.loadbalancer.server.port=80
- traefik.tcp.routers.gitlab-ssh.rule=HostSNI(`git.mydomain.com`)
- traefik.tcp.routers.gitlab-ssh.entrypoints=ssh
- traefik.tcp.routers.gitlab-ssh.service=gitlab-ssh-svc
- traefik.tcp.services.gitlab-ssh-svc.loadbalancer.server.port=33333
networks:
admin_network:
external: true
Anything fishy in my docker-compose
?
Thanks in advance