Difference between revisions of "GitLab docker compose example"
Jump to navigation
Jump to search
Tags: Mobile web edit, Mobile edit |
|||
(6 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
https://docs.gitlab.com/omnibus/docker/ | https://docs.gitlab.com/omnibus/docker/ | ||
+ | |||
+ | version: '3.6' | ||
+ | services: | ||
+ | web: | ||
+ | image: 'gitlab/gitlab-ee:latest' | ||
+ | restart: always | ||
+ | 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:]] | ||
+ | - '$GITLAB_HOME/config:/etc/gitlab' | ||
+ | - '$GITLAB_HOME/logs:/var/log/gitlab' | ||
+ | - '$GITLAB_HOME/data:/var/opt/gitlab' | ||
+ | shm_size: '256m' | ||
web: | web: | ||
− | image: 'gitlab/gitlab-ce:latest' | + | image: 'gitlab/[[gitlab-ce]]:latest' |
restart: always | restart: always | ||
hostname: 'gitlab.example.com' | hostname: 'gitlab.example.com' | ||
Line 19: | Line 39: | ||
- '/srv/gitlab/data:/var/opt/gitlab' | - '/srv/gitlab/data:/var/opt/gitlab' | ||
+ | [[GitLab: docker-compose up -d]] | ||
+ | |||
+ | |||
+ | == Related terms == | ||
+ | * <code>image: 'gitlab/[[gitlab-ee]]:latest'</code> | ||
− | |||
== See also == | == See also == | ||
Line 27: | Line 51: | ||
[[Category:Docker]] | [[Category:Docker]] | ||
+ | [[Category:GitLab]] |
Latest revision as of 12:12, 25 October 2023
https://docs.gitlab.com/omnibus/docker/
version: '3.6' services: web: image: 'gitlab/gitlab-ee:latest' restart: always 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: - '$GITLAB_HOME/config:/etc/gitlab' - '$GITLAB_HOME/logs:/var/log/gitlab' - '$GITLAB_HOME/data:/var/opt/gitlab' shm_size: '256m'
web: image: 'gitlab/gitlab-ce:latest' restart: always hostname: 'gitlab.example.com' environment: GITLAB_OMNIBUS_CONFIG: | external_url 'https://gitlab.example.com' ports: - '80:80' - '443:443' - '22:22' volumes: - '/srv/gitlab/config:/etc/gitlab' - '/srv/gitlab/logs:/var/log/gitlab' - '/srv/gitlab/data:/var/opt/gitlab'
GitLab: docker-compose up -d
Related terms[edit]
image: 'gitlab/gitlab-ee:latest'
See also[edit]
- GitLab: Install GitLab, Upgrade GitLab Gitlab runner (changelog),
gitlab.rb, .gitlab/, gitlab-ci.yml
,gitlab-ctl, gitlab-rake, gitlab-backup, gitlab-rails
, GitLab editions, GitLab Security Dashboards, GitLab environments, GitLab environment variables, Auto DevOps, permissions, GitLab Pages,gitlab-rails
, GitLab scheduled pipelines, GitLab logs, GitLab changelog , GitLab Release CLI, GitLab Omnibus, GitLab Advanced Search, GitLab container registry, GitLab infrastructure registry docker-compose
,docker-compose.yml
: [services
|volumes
|networks
|up
|down
|restart
|logs
|create
|changelog
|version
|secrets
|config
|-v
|-h
|exec], docker-compose pull
,Environment:
, Docker-compose.yml examples,.env
, release notes, expose:, docker-compose --env-file,services.deploy.resources
Advertising: