sameersbn / docker-gitlab

Dockerized GitLab
http://www.damagehead.com/docker-gitlab/
MIT License
7.9k stars 2.14k forks source link

please help me so that my yml file works with no error #2402

Open Naggenda opened 3 years ago

Naggenda commented 3 years ago

version: "2"

services: redis: restart: unless-stopped container_name: test_redis image: redis:6.2 command:

Naggenda commented 3 years ago

on running it i get the below errors SSL Key, SSL Certificate and DHParam were not found. ERROR: relation "application_settings" does not exist at character 58 gitlab exited with code 1 so any help is highly welcome thanks in advance

sachilles commented 3 years ago

Hi,

I hope your docker-compose.yml file is properly indented. (Unfortunately, I can't see that since you didn't use any code formatting in your request.)

I don't use the SSL option in the image, but I think you need to set the environment variables 'SSL_CERTIFICATE_PATH', 'SSL_KEY_PATH' and 'SSL_DHPARAM_PATH' in addition to 'SSL_SELF_SIGNED'. This should allow the integrated web server (nginx) to find the necessary files.

However, this does not explain the message 'ERROR: relation "application_settings" does not exist at character 58 gitlab exited with code 1'.

Are you sure that the PostgreSQL container is started correctly? And are you using this image for the first time, i.e. is there data to migrate?

Naggenda commented 3 years ago

on doing so i got the following error: SSL Key, SSL Certificate and DHParam were not found.

sachilles commented 3 years ago

Could you try to or did you follow this guide? (And don't forget to adapt any changes to your mounted docker volume.)

Naggenda commented 3 years ago

yes I followed that but and did the further configuration in the container using docker exec -it gitlab editor /etc/gitlab/gitlab.rb but still no change