-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy path.env.example
More file actions
58 lines (50 loc) · 2.17 KB
/
.env.example
File metadata and controls
58 lines (50 loc) · 2.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# =============================================================================
# Mediqux Environment Configuration
# =============================================================================
# Copy this file to .env and update values for your environment
# =============================================================================
# Database Configuration
POSTGRES_DB=mediqux_db
POSTGRES_USER=mediqux_user
POSTGRES_PASSWORD=change_this_secure_password_123
POSTGRES_PORT=5432
# Backend Configuration
NODE_ENV=production
DEBUG=false
LOG_LEVEL=info
DB_HOST=postgres
JWT_SECRET=change_this_jwt_secret_key_for_production_use_long_random_string
MAX_FILE_SIZE=10MB
# --- URL & Port Configuration ------------------------------------------------
#
# BACKEND_URL The full API URL that users' browsers will call.
# FRONTEND_DOCKER_PORT / BACKEND_DOCKER_PORT
# The ports Docker exposes on your host machine.
#
# Direct access (default — most users):
# Keep the port in BACKEND_URL matching BACKEND_DOCKER_PORT.
# e.g. BACKEND_URL=http://192.168.1.10:3000/api and BACKEND_DOCKER_PORT=3000
#
# Behind a reverse proxy (Nginx, Caddy, Traefik, etc.):
# Set BACKEND_URL to your public domain — the port no longer needs to match.
# e.g. BACKEND_URL=https://api.yourdomain.com/api and BACKEND_DOCKER_PORT=3000
# (the proxy listens on :443 and forwards internally to :3000)
#
# If the app loads but shows errors or can't connect: https://github.com/DMJoh/Mediqux/wiki/Configuring-URL-&-Ports
# -----------------------------------------------------------------------------
BACKEND_URL=http://localhost:3000/api
FRONTEND_DOCKER_PORT=8080
BACKEND_DOCKER_PORT=3000
# Upload Configuration
UPLOAD_PATH=/app/uploads
# Docker User/Group Configuration.
# Set these to match your host user to avoid permission issues
# Most Linux users have UID/GID 1000, but you can customize if needed
PUID=1000
PGID=1000
# Docker Image Configuration
IMAGE_TAG=latest
# Development vs Production Notes:
# - For development: Use docker-compose -f docker-compose.dev.yml up -d
# - For production: Use docker-compose up -d (uses GHCR images)
# - Change all passwords and secrets before production deployment