Skip to content

Commit

Permalink
fix(dev-docker): use only port from WEBLATE_HOST to expose ports
Browse files Browse the repository at this point in the history
  • Loading branch information
nijel committed Aug 2, 2024
1 parent 4c57e15 commit 316d4c3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dev-docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ services:
USER_ID: ${USER_ID}
GROUP_ID: ${GROUP_ID}
ports:
- ${WEBLATE_HOST##*:}:8080
- ${WEBLATE_PORT}:8080
user: $USER_ID:$GROUP_ID
userns_mode: host
tmpfs:
Expand Down
4 changes: 3 additions & 1 deletion rundev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ GREEN='\033[0;32m'
NC='\033[0m'

# Used by docker-compose-plugin
WEBLATE_HOST=localhost:8080
WEBLATE_PORT=8080
export WEBLATE_PORT
WEBLATE_HOST=localhost:$WEBLATE_PORT
export WEBLATE_HOST
# Used by docker on start
USER_ID=$(id -u)
Expand Down

0 comments on commit 316d4c3

Please sign in to comment.