Allow configurable host port
This commit is contained in:
@@ -37,7 +37,7 @@ POSTGRES_USER=watchlink
|
||||
POSTGRES_PASSWORD=change-this-database-password
|
||||
NEXTAUTH_URL=https://watchlink.example.com
|
||||
NEXTAUTH_SECRET=change-this-with-openssl-rand-base64-32
|
||||
PORT=3000
|
||||
HOST_PORT=6852
|
||||
```
|
||||
|
||||
Minimal Compose using the published image:
|
||||
@@ -69,7 +69,7 @@ services:
|
||||
NEXTAUTH_SECRET: ${NEXTAUTH_SECRET:-change-me-with-openssl-rand-base64-32}
|
||||
PORT: 3000
|
||||
ports:
|
||||
- "3000:3000"
|
||||
- "${HOST_PORT:-3000}:3000"
|
||||
command: sh -c "npx prisma migrate deploy && node server.js"
|
||||
|
||||
volumes:
|
||||
|
||||
Reference in New Issue
Block a user