gitlab-docker-compose/docker-compose.yml

23 lines
584 B
YAML
Raw Normal View History

2024-10-16 08:23:18 +00:00
version: '3.6'
services:
gitlab:
2024-10-16 08:24:38 +00:00
image: gitlab/gitlab-ce:latest
2024-10-16 08:23:18 +00:00
container_name: gitlab
restart: always
hostname: '$SERVER_HOST'
environment:
GITLAB_OMNIBUS_CONFIG: |
# Add any other gitlab.rb configuration here, each on its own line
external_url '$EXTERN_URL'
TZ : "Asia/Shanghai"
ports:
- '3080:80'
- '3443:443'
- '3022:22'
volumes:
- '$GITLAB_HOME/config:/etc/gitlab'
- '$GITLAB_HOME/logs:/var/log/gitlab'
- '$GITLAB_HOME/data:/var/opt/gitlab'
shm_size: '256m'
mem_limit: '4096m'