This commit is contained in:
2022-10-07 21:38:33 +08:00
parent d05ed65b03
commit f85c664b4c

View File

@@ -0,0 +1,28 @@
version: '3.6'
services:
web:
container_name: gitlab
image: 'gitlab/gitlab-ee:latest'
restart: unless-stopped
hostname: 'gitlab.example.com'
environment:
GITLAB_OMNIBUS_CONFIG: |
external_url 'https://gitlab.example.com'
# Add any other gitlab.rb configuration here, each on its own line
# ports:
# - '80:80'
# - '443:443'
# - '22:22'
volumes:
- './data/config:/etc/gitlab'
- './data/logs:/var/log/gitlab'
- './data/data:/var/opt/gitlab'
shm_size: '256m'
networks:
nginx:
aliases:
- gitlab
networks:
nginx:
external: true