-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Op#53021] Define Gitlab CE local docker compose setup with TLS (#14846)
* Ops[Op#53021]: Define Gitlab community edition docker compose https://community.openproject.org/work_packages/53021 Co-authored-by: Andreas Pfohl <[email protected]> * chore[Op#53021]: Allow for override in case of MacOS setup * chore[Op#53021]: Include aliases in tls docker compose override * docs[Op#53021]: Add some documentation for running the gitlab docker service * docs[Op#53021]: amend typos * docs[Op#53021]: Add helper documentation on resetting root password --------- Co-authored-by: Andreas Pfohl <[email protected]>
- Loading branch information
Showing
4 changed files
with
75 additions
and
2 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
docker-compose.override.yml |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
version: "3.9" | ||
|
||
services: | ||
gitlab: | ||
image: gitlab/gitlab-ce:latest | ||
restart: no | ||
volumes: | ||
- gitlab-etc:/etc/gitlab | ||
- gitlab-logs:/var/log/gitlab | ||
- gitlab-opt:/var/opt/gitlab | ||
# Linux | ||
- /etc/ssl/certs:/etc/ssl/certs:ro | ||
- /usr/local/share/ca-certificates:/usr/local/share/ca-certificates:ro | ||
# In case of MacOS, you need to mount the certs from the host machine | ||
# having them previously bundled via `sudo update-ca-certificates` | ||
# | ||
# - ~/.step/certs:/etc/ssl/certs | ||
# - ~/.step/certs:/usr/local/share/ca-certificates | ||
networks: | ||
- external | ||
extra_hosts: | ||
- "openproject.local:host-gateway" | ||
labels: | ||
- "traefik.enable=true" | ||
- "traefik.http.routers.gitlab.rule=Host(`gitlab.local`)" | ||
- "traefik.http.routers.gitlab.entrypoints=websecure" | ||
- "traefik.http.services.gitlab.loadbalancer.server.port=80" | ||
|
||
volumes: | ||
gitlab-etc: | ||
gitlab-logs: | ||
gitlab-opt: | ||
|
||
networks: | ||
external: | ||
name: gateway | ||
external: true |
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
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