统一时间格式和时区
This commit is contained in:
+8
-1
@@ -5,6 +5,9 @@ services:
|
||||
- POSTGRES_USER=${POSTGRES_USER:-affiliate}
|
||||
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-affiliate_dev_password}
|
||||
- POSTGRES_DB=${POSTGRES_DB:-affiliate_dash}
|
||||
- TZ=${TZ:-Asia/Shanghai}
|
||||
- PGTZ=${TZ:-Asia/Shanghai}
|
||||
command: ["postgres", "-c", "timezone=${TZ:-Asia/Shanghai}"]
|
||||
volumes:
|
||||
- postgres-data:/var/lib/postgresql/data
|
||||
restart: unless-stopped
|
||||
@@ -29,8 +32,9 @@ services:
|
||||
- "8080:8080"
|
||||
environment:
|
||||
- PORT=8080
|
||||
- TZ=${TZ:-Asia/Shanghai}
|
||||
- JWT_SECRET=${JWT_SECRET}
|
||||
- DATABASE_URL=postgres://${POSTGRES_USER:-affiliate}:${POSTGRES_PASSWORD:-affiliate_dev_password}@postgres:5432/${POSTGRES_DB:-affiliate_dash}?sslmode=disable
|
||||
- "DATABASE_URL=postgres://${POSTGRES_USER:-affiliate}:${POSTGRES_PASSWORD:-affiliate_dev_password}@postgres:5432/${POSTGRES_DB:-affiliate_dash}?sslmode=disable&TimeZone=${TZ:-Asia/Shanghai}"
|
||||
- GIN_MODE=${GIN_MODE:-release}
|
||||
- OPEN_API_KEY=${OPEN_API_KEY}
|
||||
- OPEN_API_SECRET=${OPEN_API_SECRET}
|
||||
@@ -58,10 +62,13 @@ services:
|
||||
NODE_BUILDER_IMAGE: ${NODE_BUILDER_IMAGE:-docker.m.daocloud.io/library/node:22-alpine}
|
||||
CADDY_BASE_IMAGE: ${CADDY_BASE_IMAGE:-docker.m.daocloud.io/library/caddy:2-alpine}
|
||||
NPM_REGISTRY: ${NPM_REGISTRY:-https://registry.npmmirror.com}
|
||||
ALPINE_MIRROR: ${ALPINE_MIRROR:-https://mirrors.aliyun.com/alpine}
|
||||
image: affiliate-caddy:latest
|
||||
ports:
|
||||
- "80:80"
|
||||
- "443:443"
|
||||
environment:
|
||||
- TZ=${TZ:-Asia/Shanghai}
|
||||
volumes:
|
||||
- caddy-data:/data
|
||||
- caddy-config:/config
|
||||
|
||||
Reference in New Issue
Block a user