mirror of
https://github.com/Cccc-owo/CheckInApp.git
synced 2026-06-17 05:56:29 +00:00
fix(deploy): set compose timezone
This commit is contained in:
@@ -9,6 +9,7 @@ services:
|
|||||||
- path: .env
|
- path: .env
|
||||||
required: false
|
required: false
|
||||||
environment:
|
environment:
|
||||||
|
TZ: ${TZ:-Asia/Shanghai}
|
||||||
DATABASE_URL: ${DATABASE_URL:-sqlite:////app/data/checkin.db}
|
DATABASE_URL: ${DATABASE_URL:-sqlite:////app/data/checkin.db}
|
||||||
LOG_FILE: ${LOG_FILE:-/app/logs/backend.log}
|
LOG_FILE: ${LOG_FILE:-/app/logs/backend.log}
|
||||||
SESSION_DIR: ${SESSION_DIR:-/app/sessions}
|
SESSION_DIR: ${SESSION_DIR:-/app/sessions}
|
||||||
@@ -40,6 +41,8 @@ services:
|
|||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
ports:
|
ports:
|
||||||
- "${CHECKIN_WEB_PORT:-3090}:80"
|
- "${CHECKIN_WEB_PORT:-3090}:80"
|
||||||
|
environment:
|
||||||
|
TZ: ${TZ:-Asia/Shanghai}
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD-SHELL", "wget -qO- http://127.0.0.1/health >/dev/null"]
|
test: ["CMD-SHELL", "wget -qO- http://127.0.0.1/health >/dev/null"]
|
||||||
|
|||||||
@@ -4,6 +4,9 @@
|
|||||||
# Public web port exposed by the web service.
|
# Public web port exposed by the web service.
|
||||||
CHECKIN_WEB_PORT=3090
|
CHECKIN_WEB_PORT=3090
|
||||||
|
|
||||||
|
# Container timezone. Asia/Shanghai is UTC+8.
|
||||||
|
TZ=Asia/Shanghai
|
||||||
|
|
||||||
# ==================== Backend runtime paths ====================
|
# ==================== Backend runtime paths ====================
|
||||||
# Container-local defaults for the Compose deployment.
|
# Container-local defaults for the Compose deployment.
|
||||||
DATABASE_URL=sqlite:////app/data/checkin.db
|
DATABASE_URL=sqlite:////app/data/checkin.db
|
||||||
|
|||||||
Reference in New Issue
Block a user