| ... | ... | @@ -68,3 +68,22 @@ In the database user run: |
|
|
|
gitlab-rake gitlab:setup
|
|
|
|
```
|
|
|
|
|
|
|
|
### Configure GitLab-container to use external database running in remote host
|
|
|
|
|
|
|
|
I am running remote postgreSQL server in google cloud. The machine runs with 1 CPU 4 GB RAM Ubuntu 16.04 50 GB memory. The installation is same than above.
|
|
|
|
|
|
|
|
To connect to remote GitLab edit the /etc/postgresql/9.6/main/pg_hba.conf file:
|
|
|
|
```
|
|
|
|
# IPv4 local connections:
|
|
|
|
host all all ip md5
|
|
|
|
```
|
|
|
|
Because our virtual machines are running in the same network I added the internal ip-address of the database.
|
|
|
|
|
|
|
|
Also change in /etc/postgresql/9.6/main/postgresql.conf file:
|
|
|
|
```
|
|
|
|
listen_addresses = '*'
|
|
|
|
```
|
|
|
|
So now the server is listening all connections.
|
|
|
|
|
|
|
|
|
|
|
|
|