3 - Add README for self-hosters
All checks were successful
Build and Push Docker Image / build (push) Successful in 7m51s
All checks were successful
Build and Push Docker Image / build (push) Successful in 7m51s
This commit is contained in:
parent
edfa58579b
commit
6fee71eec1
4 changed files with 9 additions and 2 deletions
|
|
@ -4,6 +4,9 @@ APP_KEY=
|
||||||
APP_DEBUG=true
|
APP_DEBUG=true
|
||||||
APP_URL=http://localhost:8000
|
APP_URL=http://localhost:8000
|
||||||
|
|
||||||
|
# Host port the app is published on (self-hosting only).
|
||||||
|
APP_PORT=8000
|
||||||
|
|
||||||
APP_LOCALE=en
|
APP_LOCALE=en
|
||||||
APP_FALLBACK_LOCALE=en
|
APP_FALLBACK_LOCALE=en
|
||||||
APP_FAKER_LOCALE=en_US
|
APP_FAKER_LOCALE=en_US
|
||||||
|
|
|
||||||
|
|
@ -53,6 +53,7 @@ ### Configuration
|
||||||
| `DB_PASSWORD` | Database password |
|
| `DB_PASSWORD` | Database password |
|
||||||
| `DB_ROOT_PASSWORD` | MariaDB root password |
|
| `DB_ROOT_PASSWORD` | MariaDB root password |
|
||||||
|
|
||||||
|
`APP_PORT` moves the published port (default `8000`) — set `APP_URL` to match if you change it.
|
||||||
`DB_DATABASE` and `DB_USERNAME` both default to `anagram`. Anything else you might want to
|
`DB_DATABASE` and `DB_USERNAME` both default to `anagram`. Anything else you might want to
|
||||||
override is listed in [`.env.example`](.env.example).
|
override is listed in [`.env.example`](.env.example).
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,10 @@
|
||||||
health: '/up',
|
health: '/up',
|
||||||
)
|
)
|
||||||
->withMiddleware(function (Middleware $middleware): void {
|
->withMiddleware(function (Middleware $middleware): void {
|
||||||
//
|
// The container is always behind a reverse proxy that terminates TLS;
|
||||||
|
// without this Laravel sees plain HTTP and generates http:// redirects
|
||||||
|
// onto an https:// page.
|
||||||
|
$middleware->trustProxies(at: '*');
|
||||||
})
|
})
|
||||||
->withExceptions(function (Exceptions $exceptions): void {
|
->withExceptions(function (Exceptions $exceptions): void {
|
||||||
$exceptions->shouldRenderJsonWhen(
|
$exceptions->shouldRenderJsonWhen(
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ services:
|
||||||
container_name: anagram_app
|
container_name: anagram_app
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ports:
|
ports:
|
||||||
- "127.0.0.1:8000:8000"
|
- "127.0.0.1:${APP_PORT:-8000}:8000"
|
||||||
environment:
|
environment:
|
||||||
APP_NAME: "Anagram Finder"
|
APP_NAME: "Anagram Finder"
|
||||||
APP_ENV: production
|
APP_ENV: production
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue