the external url for ip-only deployment
version: '3.6'
services:
web:
image: 'gitlab/gitlab-ce:15.6.0-ce.0'
restart: always
# hostname: 'http://49.234.96.230'
environment:
TZ: Asia/Shanghai
GITLAB_OMNIBUS_CONFIG: |
external_url 'http://49.234.96.230'
gitlab_rails['lfs_enabled'] = true
gitlab_rails['time_zone'] = 'Asia/Shanghai'
# Add any other gitlab.rb configuration here, each on its own line
ports:
- '8080:80'
- '443:443'
- '2222:22'
volumes:
- '/opt/gitlab/config:/etc/gitlab'
- '/opt/gitlab/logs:/var/log/gitlab'
- '/opt/gitlab/data:/var/opt/gitlab'
shm_size: '256m'
if external_url configured to http://49.234.96.230:8080, then i can't open gitlab homepage(http://49.234.96.210:8080).
but if external_url configured to http://49.234.96.230, the http url for clone is not right
