Created
April 28, 2020 02:46
-
-
Save TheSnowfield/8d181ec877f4aae4d4cbd89e57222e35 to your computer and use it in GitHub Desktop.
gitlab-ce docker compose file for windows
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Gitlab-ce Docker Compose File | |
version: '3' | |
services: | |
web: | |
image: gitlab/gitlab-ce:latest | |
container_name: '容器名稱' | |
restart: always | |
hostname: '網站地址' | |
environment: | |
GITLAB_OMNIBUS_CONFIG: | | |
external_url 'https://網站地址' | |
nginx['ssl_client_certificate'] = "/etc/gitlab/ssl/ca.crt" | |
nginx['ssl_certificate'] = "/etc/gitlab/ssl/證書.crt" | |
nginx['ssl_certificate_key'] = "/etc/gitlab/ssl/證書密鑰.key" | |
letsencrypt['enable'] = false | |
ports: | |
- '433:433' | |
volumes: | |
- './gitlab-host:/mnt/host' | |
- './gitlab-config:/etc/gitlab' | |
- 'gitlab-logs:/var/log/gitlab' | |
- 'gitlab-data:/var/opt/gitlab' | |
volumes: | |
gitlab-data: | |
gitlab-logs: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment