Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
c075e721
Commit
c075e721
authored
Dec 20, 2021
by
Bryant Finney
Committed by
Achilleas Pipinellis
Dec 20, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add missing properties to example compose files (#348888)
parent
f8495767
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
33 deletions
+37
-33
doc/install/docker.md
doc/install/docker.md
+37
-33
No files found.
doc/install/docker.md
View file @
c075e721
...
@@ -141,23 +141,25 @@ install, and upgrade your Docker-based GitLab installation:
...
@@ -141,23 +141,25 @@ install, and upgrade your Docker-based GitLab installation:
1.
Create a
`docker-compose.yml`
file (or
[
download an example
](
https://gitlab.com/gitlab-org/omnibus-gitlab/raw/master/docker/docker-compose.yml
)
):
1.
Create a
`docker-compose.yml`
file (or
[
download an example
](
https://gitlab.com/gitlab-org/omnibus-gitlab/raw/master/docker/docker-compose.yml
)
):
```
yaml
```
yaml
web
:
version
:
'
3.6'
image
:
'
gitlab/gitlab-ee:latest'
services
:
restart
:
always
web
:
hostname
:
'
gitlab.example.com'
image
:
'
gitlab/gitlab-ee:latest'
environment
:
restart
:
always
GITLAB_OMNIBUS_CONFIG
:
|
hostname
:
'
gitlab.example.com'
external_url 'https://gitlab.example.com'
environment
:
# Add any other gitlab.rb configuration here, each on its own line
GITLAB_OMNIBUS_CONFIG
:
|
ports
:
external_url 'https://gitlab.example.com'
-
'
80:80'
# Add any other gitlab.rb configuration here, each on its own line
-
'
443:443'
ports
:
-
'
22:22'
-
'
80:80'
volumes
:
-
'
443:443'
-
'
$GITLAB_HOME/config:/etc/gitlab'
-
'
22:22'
-
'
$GITLAB_HOME/logs:/var/log/gitlab'
volumes
:
-
'
$GITLAB_HOME/data:/var/opt/gitlab'
-
'
$GITLAB_HOME/config:/etc/gitlab'
shm_size
:
'
256m'
-
'
$GITLAB_HOME/logs:/var/log/gitlab'
-
'
$GITLAB_HOME/data:/var/opt/gitlab'
shm_size
:
'
256m'
```
```
1.
Make sure you are in the same directory as
`docker-compose.yml`
and start
1.
Make sure you are in the same directory as
`docker-compose.yml`
and start
...
@@ -176,22 +178,24 @@ HTTP and SSH port. Notice how the `GITLAB_OMNIBUS_CONFIG` variables match the
...
@@ -176,22 +178,24 @@ HTTP and SSH port. Notice how the `GITLAB_OMNIBUS_CONFIG` variables match the
`ports`
section:
`ports`
section:
```
yaml
```
yaml
web
:
version
:
'
3.6'
image
:
'
gitlab/gitlab-ee:latest'
services
:
restart
:
always
web
:
hostname
:
'
gitlab.example.com'
image
:
'
gitlab/gitlab-ee:latest'
environment
:
restart
:
always
GITLAB_OMNIBUS_CONFIG
:
|
hostname
:
'
gitlab.example.com'
external_url 'http://gitlab.example.com:8929'
environment
:
gitlab_rails['gitlab_shell_ssh_port'] = 2224
GITLAB_OMNIBUS_CONFIG
:
|
ports
:
external_url 'http://gitlab.example.com:8929'
-
'
8929:8929'
gitlab_rails['gitlab_shell_ssh_port'] = 2224
-
'
2224:22'
ports
:
volumes
:
-
'
8929:8929'
-
'
$GITLAB_HOME/config:/etc/gitlab'
-
'
2224:22'
-
'
$GITLAB_HOME/logs:/var/log/gitlab'
volumes
:
-
'
$GITLAB_HOME/data:/var/opt/gitlab'
-
'
$GITLAB_HOME/config:/etc/gitlab'
shm_size
:
'
256m'
-
'
$GITLAB_HOME/logs:/var/log/gitlab'
-
'
$GITLAB_HOME/data:/var/opt/gitlab'
shm_size
:
'
256m'
```
```
This is the same as using
`--publish 8929:8929 --publish 2224:22`
.
This is the same as using
`--publish 8929:8929 --publish 2224:22`
.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment