mirror of
https://github.com/opf/openproject.git
synced 2026-06-14 03:30:14 +00:00
827f577c85
Instead of assuming that the TLD is .local, we allow to overwrite it with different TLDs, so that the local setup can be adapted to developer needs.
38 lines
1.0 KiB
YAML
38 lines
1.0 KiB
YAML
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.${OPENPROJECT_DOCKER_DEV_TLD}:host-gateway"
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.gitlab.rule=Host(`gitlab.${OPENPROJECT_DOCKER_DEV_TLD}`)"
|
|
- "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
|