feat: allow host port to be configured via environment variable in Docker (#65)
* feat: add reverse proxy support with configurable base path and trust proxy settings * fix: ensure environment variables are loaded correctly in Docker - Move dotenv config to the top of server.js - Update docker-compose.yml to properly handle .env file - Remove duplicate environment variables section This ensures BASE_PATH and TRUST_PROXY work as expected in both Docker and local environments. * refactor: remove hardcoded environment variables from docker-compose.yml * feat: Allow host port to be configured via .env
This commit is contained in:
parent
3fb7538149
commit
85dbb14b28
1 changed files with 1 additions and 1 deletions
|
|
@ -9,7 +9,7 @@ services:
|
||||||
container_name: wwebjs-api
|
container_name: wwebjs-api
|
||||||
restart: always
|
restart: always
|
||||||
ports:
|
ports:
|
||||||
- "3000:3000"
|
- "${PORT:-3000}:3000"
|
||||||
env_file: .env
|
env_file: .env
|
||||||
volumes:
|
volumes:
|
||||||
- ./sessions:/usr/src/app/sessions
|
- ./sessions:/usr/src/app/sessions
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue