⚠️ BREAKING CHANGES
Configuration file changes require migration. Existing .env files will not work with the new docker-compose.yml.
Variables Removed
MEDIQUX_API_URL,FRONTEND_URL- Now auto-constructed from host + portDB_NAME,DB_USER,DB_PASSWORD,DB_PORT- UsePOSTGRES_*equivalents instead
Variables Added
BACKEND_HOST,BACKEND_PORT- For backend API configurationFRONTEND_HOST,FRONTEND_PORT- For frontend configurationPOSTGRES_PORT- ReplacesDB_PORT
Migration Steps
-
Backup your
.env:cp .env .env.backup -
**Download the latest env file **
curl -o .env https://raw.githubusercontent.com/DMJoh/Mediqux/refs/heads/main/.env.example
-
Migrate values:
OLD variables → NEW variables
MEDIQUX_API_URL=http://localhost:3000/api → BACKEND_HOST=localhost, BACKEND_PORT=3000 FRONTEND_URL=http://localhost:8080 → FRONTEND_HOST=localhost, FRONTEND_PORT=8080 DB_NAME=mediqux_db → POSTGRES_DB=mediqux_db DB_USER=mediqux_user → POSTGRES_USER=mediqux_user DB_PASSWORD=password → POSTGRES_PASSWORD=password DB_PORT=5432 → POSTGRES_PORT=5432
-
Update
docker-compose.ymlto latest versioncurl -O https://raw.githubusercontent.com/DMJoh/Mediqux/refs/heads/main/docker-compose.yml
-
Restart:
docker-compose down && docker-compose up -d
Why This Change?
Prevents configuration errors from port/URL mismatches. URLs are now auto-constructed in docker-compose.yml:
MEDIQUX_API_URL→http://${BACKEND_HOST}:${BACKEND_PORT}/apiFRONTEND_URL→http://${FRONTEND_HOST}:${FRONTEND_PORT}
What's Changed
Full Changelog: 1.0.6...1.0.7