Database port env variable #169

Closed
opened 2026-02-04 17:26:25 +03:00 by OVERLORD · 3 comments
Owner

Originally created by @dionysiusmarquis on GitHub (Sep 23, 2016).

For Feature Requests

Desired Feature:
Change the database port via env variable.

Expected Behavior:
Be able to change the database port via DB_PORT variable

Actual Behavior:
This env variable is not implemented

Originally created by @dionysiusmarquis on GitHub (Sep 23, 2016). ### For Feature Requests Desired Feature: Change the database port via env variable. Expected Behavior: Be able to change the database port via DB_PORT variable Actual Behavior: This env variable is not implemented
Author
Owner

@lommes commented on GitHub (Sep 24, 2016):

It should work if you add tthe port to the host string in your .env-file:

DB_HOST=localhost:3399
@lommes commented on GitHub (Sep 24, 2016): It should work if you add tthe port to the host string in your .env-file: ``` DB_HOST=localhost:3399 ```
Author
Owner

@dionysiusmarquis commented on GitHub (Sep 24, 2016):

In my special case I wanted to use it with https://hub.docker.com/r/solidnerd/bookstack/ and the whole docker start routine got messed up with the host:port approach. The laravel port option was the only one working for me in this scenario.

@dionysiusmarquis commented on GitHub (Sep 24, 2016): In my special case I wanted to use it with https://hub.docker.com/r/solidnerd/bookstack/ and the whole docker start routine got messed up with the host:port approach. The [laravel port option](https://laracasts.com/discuss/channels/laravel/how-to-specify-a-different-database-port?page=1) was the only one working for me in this scenario.
Author
Owner

@ssddanbrown commented on GitHub (Nov 5, 2016):

Since solidnerd/docker-bookstack#9 has now been merged and made it into a release this is no longer required as the port can be defined via the host and is now compatible via the docker solution.

@ssddanbrown commented on GitHub (Nov 5, 2016): Since solidnerd/docker-bookstack#9 has now been merged and made it into a release this is no longer required as the port can be defined via the host and is now compatible via the docker solution.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#169