28 lines
771 B
YAML
28 lines
771 B
YAML
version: '3.6'
|
|
services:
|
|
gitlab:
|
|
image: alpinelinux/gitlab:17.3
|
|
container_name: minigitlab
|
|
restart: always
|
|
hostname: '$SERVER_HOST'
|
|
environment:
|
|
- GITLAB_HOSTNAME=$GITLAB_HOSTNAME
|
|
- GITLAB_ROOT_PASSWORD=$GITLAB_ROOT_PASSWORD
|
|
- POSTGRES_PASSWORD=$POSTGRES_PASSWORD
|
|
- POSTGRES_USER=$POSTGRES_USER
|
|
- TZ=Asia/Shanghai
|
|
# GITLAB_OMNIBUS_CONFIG: |
|
|
# Add any other gitlab.rb configuration here, each on its own line
|
|
# external_url '$EXTERN_URL'
|
|
|
|
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'
|