gitlab-docker-compose/docker-compose.yml

28 lines
782 B
YAML
Raw Normal View History

2024-10-16 08:23:18 +00:00
version: '3.6'
services:
gitlab:
2024-10-16 09:03:29 +00:00
image: alpinelinux/gitlab:17.3
container_name: minigitlab
2024-10-16 08:23:18 +00:00
restart: always
hostname: '$SERVER_HOST'
environment:
2024-10-16 09:07:12 +00:00
- GITLAB_HOSTNAME:'$GITLAB_HOSTNAME'
- GITLAB_ROOT_PASSWORD:'$GITLAB_ROOT_PASSWORD'
- POSTGRES_PASSWORD:'$POSTGRES_PASSWORD'
- POSTGRES_USER:'$POSTGRES_USER'
- TZ :'Asia/Shanghai'
2024-10-16 09:03:29 +00:00
# GITLAB_OMNIBUS_CONFIG: |
2024-10-16 08:23:18 +00:00
# Add any other gitlab.rb configuration here, each on its own line
2024-10-16 09:03:29 +00:00
# external_url '$EXTERN_URL'
2024-10-16 08:23:18 +00:00
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'