added docker-compose for linux
This commit is contained in:
+33
@@ -0,0 +1,33 @@
|
||||
# ============================================================
|
||||
# ScalesApp Docker Configuration
|
||||
# Copy this file to .env and fill in your values:
|
||||
# cp .env.docker .env
|
||||
# NOTE: Docker Compose .env does not expand variables like ${SERVER_HOST},
|
||||
# so all values must be written out explicitly.
|
||||
# ============================================================
|
||||
|
||||
# --- Database ---
|
||||
DB_PASSWORD=admin
|
||||
|
||||
# --- Django ---
|
||||
# Generate a real key with: python -c "import secrets; print(secrets.token_hex(50))"
|
||||
SECRET_KEY=change-me-to-a-long-random-string
|
||||
|
||||
# Comma-separated list of hostnames/IPs Django will accept requests for
|
||||
ALLOWED_HOSTS=localhost,127.0.0.1,192.168.24.45
|
||||
|
||||
# Comma-separated origins the browser is allowed to call from
|
||||
CORS_ALLOWED_ORIGINS=http://192.168.24.45:8100,http://localhost:8100
|
||||
|
||||
# --- Frontend (baked into the React bundle at build time) ---
|
||||
# Address the browser uses to reach the Django API
|
||||
REACT_APP_API_URL=http://192.168.24.45:8101
|
||||
|
||||
# Address the browser uses to reach the serial bridge SSE stream
|
||||
REACT_APP_SERIAL_URL=http://192.168.24.45:8102
|
||||
|
||||
# --- Serial bridge / test writer ---
|
||||
BAUD_RATE=9600
|
||||
TEST_DATA_TYPE=scales
|
||||
SCALES_MIN=5000
|
||||
SCALES_MAX=20000
|
||||
Reference in New Issue
Block a user