Skip to content

Commit

Permalink
fix(verlihub): Default to port 4111 (#331)
Browse files Browse the repository at this point in the history
  • Loading branch information
MattKobayashi authored Oct 19, 2024
1 parent 1d5b3d6 commit e222036
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion verlihub/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ This image is configured using environment variables and Docker secrets.
|`VH_MYSQL_USER`||The username of the database user with full permissions over the `MYSQL_DB_NAME` database (defaults to `verlihub`)|
|`VH_HUB_CONFIG_DIR`||The directory where Verlihub stores configuration data (defaults to `/opt/verlihub/.config/verlihub`)|
|`VH_HUB_HOST`||The hostname of the Verlihub server|
|`VH_HUB_PORT`||The port that the Verlihub server runs on (defaults to `411` when `NET_BIND_SERVICE` capability is added, otherwise `4111`)|
|`VH_HUB_PORT`||The port that the Verlihub server runs on (defaults to `4111`)|
|`VH_HUB_NAME`||The name of the Verlihub server (defaults to `Verlihub`)|
|`VH_HUB_MASTER_NAME`||The username of the master user on the Verlihub server|

Expand Down
6 changes: 2 additions & 4 deletions verlihub/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ services:
build:
context: .
dockerfile: Dockerfile
cap_add:
- NET_BIND_SERVICE
container_name: verlihub
depends_on:
verlihub-mysql:
Expand Down Expand Up @@ -64,6 +62,6 @@ secrets:
file: secrets/VH_HUB_MASTER_PASSWORD
volumes:
verlihub-data:
name: verlihub-data
name: verlihub_data
verlihub-mysql-data:
name: verlihub-mysql-data
name: verlihub-mysql_data
2 changes: 1 addition & 1 deletion verlihub/scripts/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def generate_config_file(file_path):
'VH_HUB_CONFIG_DIR', '/opt/verlihub/.config/verlihub'
).rstrip('/')
VH_HUB_HOST = os.environ['VH_HUB_HOST']
VH_HUB_PORT = os.environ.get('VH_HUB_PORT', '411')
VH_HUB_PORT = os.environ.get('VH_HUB_PORT', '4111')
VH_HUB_NAME = os.environ.get('VH_HUB_NAME', 'Verlihub')
VH_HUB_MASTER_NAME = os.environ['VH_HUB_MASTER_NAME']
try:
Expand Down

0 comments on commit e222036

Please sign in to comment.