klesh commented on issue #7329:
URL:
https://github.com/apache/incubator-devlake/issues/7329#issuecomment-2068897650
Hi, I tried to reproduce the problem using docker-compose and gitlab with a
self-signed certificate, It worked just fine...
Here is how I set it up
docker-compose.yml for gitlab server
```
version: '3.6'
services:
web:
container_name: gitlab
image: 'gitlab/gitlab-ce:latest'
restart: always
hostname: 'gitlab.local'
environment:
GITLAB_OMNIBUS_CONFIG: |
external_url 'https://gitlab.local:32443'
# Add any other gitlab.rb configuration here, each on its own line
gitlab_rails['gitlab_shell_ssh_port'] = 3222
letsencrypt['enable'] = false
ports:
- '3280:80'
- '32443:32443'
- '3222:22'
volumes:
- '~/docker/gitlabce/config:/etc/gitlab'
- '~/docker/gitlabce/logs:/var/log/gitlab'
- '~/docker/gitlabce/data:/var/opt/gitlab'
- './cert/gitlab.key:/etc/gitlab/ssl/gitlab.local.key'
- './cert/gitlab.crt:/etc/gitlab/ssl/gitlab.local.crt'
shm_size: '256m'
networks:
- gitlabce
networks:
gitlabce:
driver: bridge
```
docker-compose.yml for `devlake`
```
devlake:
image: apache/devlake:v1.0.0-beta4
ports:
- "8080:8080"
restart: always
volumes:
- devlake-log:/app/logs
-
/path/to/gitlabce/cert/ca/rootCA.crt:/usr/local/share/ca-certificates/rootCA.crt
command: [ "sh", "-c", "update-ca-certificates; lake" ]
env_file:
- ./.env
environment:
LOGGING_DIR: /app/logs
TZ: UTC
depends_on:
- mysql
networks:
- gitlabce_gitlabce
- devlake
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]