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
0
Merge Requests
0
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
Léo-Paul Géneau
gitlab-ce
Commits
b43cec03
Commit
b43cec03
authored
May 15, 2015
by
Stan Hu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set gitlab.rb in Docker single image in order to make PostgreSQL start up properly
See gitlab-org/omnibus-gitlab#552
parent
e54ff51a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
0 deletions
+38
-0
docker/single/Dockerfile
docker/single/Dockerfile
+1
-0
docker/single/assets/gitlab.rb
docker/single/assets/gitlab.rb
+37
-0
No files found.
docker/single/Dockerfile
View file @
b43cec03
...
...
@@ -28,6 +28,7 @@ EXPOSE 80 22
# Copy assets
COPY
assets/wrapper /usr/local/bin/
COPY
assets/gitlab.rb /etc/gitlab/
# Wrapper to handle signal, trigger runit and reconfigure GitLab
CMD
["/usr/local/bin/wrapper"]
docker/single/assets/gitlab.rb
0 → 100644
View file @
b43cec03
# External URL should be your Docker instance.
# By default, GitLab will use the Docker container hostname.
# Always use port 80 here to force the internal nginx to bind port 80,
# even if you intend to use another port in Docker.
# external_url "http://192.168.59.103/"
# Prevent Postgres from trying to allocate 25% of total memory
postgresql
[
'shared_buffers'
]
=
'1MB'
# Configure GitLab to redirect PostgreSQL logs to the data volume
postgresql
[
'log_directory'
]
=
'/var/log/gitlab/postgresql'
# Some configuration of GitLab
# You can find more at https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/README.md#configuration
gitlab_rails
[
'gitlab_email_from'
]
=
'gitlab@example.com'
gitlab_rails
[
'gitlab_support_email'
]
=
'support@example.com'
gitlab_rails
[
'time_zone'
]
=
'Europe/Paris'
# SMTP settings
# You must use an external server, the Docker container does not install an SMTP server
gitlab_rails
[
'smtp_enable'
]
=
true
gitlab_rails
[
'smtp_address'
]
=
"smtp.example.com"
gitlab_rails
[
'smtp_port'
]
=
587
gitlab_rails
[
'smtp_user_name'
]
=
"user"
gitlab_rails
[
'smtp_password'
]
=
"password"
gitlab_rails
[
'smtp_domain'
]
=
"example.com"
gitlab_rails
[
'smtp_authentication'
]
=
"plain"
gitlab_rails
[
'smtp_enable_starttls_auto'
]
=
true
# Enable LDAP authentication
# gitlab_rails['ldap_enabled'] = true
# gitlab_rails['ldap_host'] = 'ldap.example.com'
# gitlab_rails['ldap_port'] = 389
# gitlab_rails['ldap_method'] = 'plain' # 'ssl' or 'plain'
# gitlab_rails['ldap_allow_username_or_email_login'] = false
# gitlab_rails['ldap_uid'] = 'uid'
# gitlab_rails['ldap_base'] = 'ou=users,dc=example,dc=com'
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