diff --git a/README.md b/README.md index 57b52f4..fe21807 100755 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ openplayground run Alternatively, run it as a docker container: ```sh -docker run --name openplayground -p 5432:5432 -d --volume openplayground:/web/config natorg/openplayground +docker run --name openplayground -p 51234:51234 -d --volume openplayground:/web/config natorg/openplayground ``` This runs a Flask process, so you can add the typical flags such as setting a different port `openplayground run -p 1235` and others. @@ -43,7 +43,7 @@ cd server && pip3 install -r requirements.txt && cd .. && python3 -m server.app ```sh docker build . --tag "openplayground" -docker run --name openplayground -p 5432:5432 -d --volume openplayground:/web/config openplayground +docker run --name openplayground -p 51234:51234 -d --volume openplayground:/web/config openplayground ``` First volume is optional. It's used to store API keys, models settings. diff --git a/server/app.py b/server/app.py index 3804504..bac2ed6 100755 --- a/server/app.py +++ b/server/app.py @@ -326,7 +326,7 @@ def cli(): @click.command() @click.help_option('-h', '--help') @click.option('--host', '-H', default='localhost', help='The host to bind to. Default: localhost.') -@click.option('--port', '-p', default=5432, help='The port to bind to. Default: 5432.') +@click.option('--port', '-p', default=51234, help='The port to bind to. Default: 51234.') @click.option('--debug/--no-debug', default=False, help='Enable or disable Flask debug mode. Default: False.') @click.option('--env', '-e', default=".env", help='Path to the environment file for storing and reading API keys. Default: .env.') @click.option('--models', '-m', default=None, help='Path to the configuration file for loading models. Default: None.') @@ -339,7 +339,7 @@ def run(host, port, debug, env, models, log_level): Arguments: --host, -H: The host to bind to. Default: localhost. - --port, -p: The port to bind to. Default: 5432. + --port, -p: The port to bind to. Default: 51234. --debug/--no-debug: Enable or disable Flask debug mode. Default: False. --env, -e: Path to the environment file for storing and reading API keys. Default: .env. --models, -m: Path to the configuration file for loading models. Default: None.