Skip to content

Commit

Permalink
Always use port 5000 for the web interface
Browse files Browse the repository at this point in the history
  • Loading branch information
justinclift committed Sep 30, 2024
1 parent c3079db commit 94da104
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion data/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ services:
<<: *redash-service
command: server
ports:
- "__PORT__:5000"
- "5000:5000"
environment:
REDASH_WEB_WORKERS: 4
scheduler:
Expand Down
6 changes: 1 addition & 5 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ REDASH_BASE_PATH=/opt/redash
DONT_START=no
OVERWRITE=no
PREVIEW=no
PORT=5000

# Ensure the script is being run as root
ID=$(id -u)
Expand Down Expand Up @@ -46,7 +45,6 @@ do
;;
-p|--preview)
PREVIEW=yes
PORT=5001
shift
;;
-h|--help)
Expand Down Expand Up @@ -265,8 +263,6 @@ setup_compose() {
TAG="preview"
fi
sed -i "s|__TAG__|$TAG|" compose.yaml
# The preview image uses a different port to access the web interface
sed -i "s|__PORT__|$PORT|" compose.yaml
export COMPOSE_FILE="$REDASH_BASE_PATH"/compose.yaml
export COMPOSE_PROJECT_NAME=redash
}
Expand All @@ -293,7 +289,7 @@ startup() {
docker compose up -d

echo
echo "Redash has been installed and is ready for configuring at http://$(hostname -f):$PORT"
echo "Redash has been installed and is ready for configuring at http://$(hostname -f):5000"
echo
else
echo
Expand Down

0 comments on commit 94da104

Please sign in to comment.