Publish the app port on all interfaces, not just loopback
All checks were successful
Build and Push Docker Image / build (push) Successful in 8m42s

This commit is contained in:
myrmidex 2026-08-23 23:18:38 +02:00
parent 6fee71eec1
commit 089ce4d973
2 changed files with 5 additions and 5 deletions

View file

@ -36,8 +36,8 @@ ## Self-hosting
docker compose up -d
```
The app is then on <http://127.0.0.1:8000>. It binds to localhost only; put a reverse proxy in
front of it for anything public-facing.
The app is then on <http://localhost:8000>. Put a reverse proxy in front of it for anything
public-facing, and set `APP_URL` to the address people will actually use.
`compose.yaml` pins `:latest`. Check [Releases](https://forge.lvl0.xyz/anagram-finder/web/releases)
and pin a version tag if you would rather upgrade deliberately.

View file

@ -3,8 +3,8 @@
# Copy .env.example to .env, set APP_KEY and the database passwords, then:
# docker compose up -d
#
# The app binds to 127.0.0.1 only. Put a reverse proxy in front of it for
# anything public-facing, and set APP_URL to the address people will use.
# Put a reverse proxy in front of this for anything public-facing, and set
# APP_URL to the address people will actually use.
services:
app:
@ -12,7 +12,7 @@ services:
container_name: anagram_app
restart: unless-stopped
ports:
- "127.0.0.1:${APP_PORT:-8000}:8000"
- "${APP_PORT:-8000}:8000"
environment:
APP_NAME: "Anagram Finder"
APP_ENV: production