Skip to content

Can't create self-hosted instance of Repman #700

@demoniqus

Description

@demoniqus

Hello!

I try to create a selfhosted instance of Repman as described into docs.

I use Docker installation and changing the /etc/hosts file.

The section "Hosts file" requires to add a few lines to /etc/hosts. But there no explain what IP must be used ? Now I try to use actual IP extracted from "ip addr" command.

Next I run "git clone https://github.com/repman-io/repman.git".
After cloning I rewrite files:

  1. docker-compose.override.yml - I changed volumes base path
version: '3.4'

x-restart-policy: &restart_policy
  restart: unless-stopped

services:
  database:
    ......
    environment:
      POSTGRES_USER: main
      POSTGRES_PASSWORD: main
      POSTGRES_DB: main
  ....
  app:
    ....
    env_file: .env.docker
......
......
volumes:
  postgres-data:
  app-var:
    ...
    driver_opts:
      ....
      device: /opt/DISK/Develop/Docker/src/projects/nginx/repman/var
      ....
  app-public:
    ....
    driver_opts:
      ....
      device: /opt/DISK/Develop/Docker/src/projects/nginx/repman/public
      ....
  docker-logs-nginx:
    ....
  1. .env - the file .env.docker is spicified into docker-compose file but really it doesn't use during containers building process. I dont know why. I changed PHP_URL, APP_HOST, APP_GITLAB_API_URL and DATABASE_URL. But the docs doesn't explain if some relations exist between lines writed into /etc/hosts file and parameters like APP_GITLAB_API_URL, APP_HOST. For parameter DATABASE_URL I extract IP from "docker network inspect repman_default"
....

###> docker ###
PHP_URL=repman.cont.local:9000
###< docker ###

###> app ###
APP_HOST=repman.cont.local
.....
APP_URL_SCHEME=https
APP_ALLOWED_PACKAGE_TYPES=git,github,gitlab,path
APP_GITLAB_API_URL=https://repman.cont.local
###< app ###

###> symfony/framework-bundle ###
APP_ENV=prod
APP_DEBUG=0
APP_SECRET=some_secret
....
###< symfony/framework-bundle ###

###> doctrine/doctrine-bundle ###
.....
DATABASE_URL=postgresql://main:main@172.19.0.2:5432/main?serverVersion=11&charset=utf8
###< doctrine/doctrine-bundle ###
....

After it I run "docker compose up -d" to start repman. Docker created all containers.
Next I had installed some depenecies from PHP libraries and ran "composer install", "bin/console doctrine:migrations:migrate", as is specified in docs. All fine.

What next? What url I must use to access to repman? If I use referencies specified in /etc/hosts or in .env then nothing happens. Moreover in case I use HTTP instead of HTTPS then I see default Apache page

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions