mirror of
https://github.com/hamster1963/nezha-dash.git
synced 2025-04-24 21:10:45 +08:00
feat: new init env
This commit is contained in:
parent
2d41adcbc6
commit
a5f1f40973
@ -1,5 +1,5 @@
|
||||
NezhaBaseUrl=http://0.0.0.0:8008
|
||||
NezhaAuth=5hAY3QX6Nl9B3UOQgB26KdsdS1dsdUdM
|
||||
NEXT_PUBLIC_NezhaFetchInterval=5000
|
||||
NezhaBaseUrl=http://1.1.1.1:8008
|
||||
NezhaAuth=nezha-token
|
||||
NEXT_PUBLIC_NezhaFetchInterval=2000
|
||||
NEXT_PUBLIC_ShowFlag=true
|
||||
NEXT_PUBLIC_DisableCartoon=true
|
||||
NEXT_PUBLIC_DisableCartoon=false
|
@ -41,7 +41,7 @@ COPY --from=builder /app/public ./public
|
||||
|
||||
COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./
|
||||
COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static
|
||||
|
||||
COPY --from=builder --chown=nextjs:nodejs /.env.example ./.env
|
||||
|
||||
USER nextjs
|
||||
|
||||
|
@ -2,7 +2,6 @@ services:
|
||||
nezha-dash:
|
||||
container_name: nezha-dash
|
||||
image: registry.cn-guangzhou.aliyuncs.com/hamster-home/nezha-dash:latest
|
||||
entrypoint: /app/public/docker-start/docker-entrypoint.sh
|
||||
volumes:
|
||||
- ./.env:/app/.env
|
||||
restart: always
|
||||
|
@ -1,9 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
# 如果 .env 文件不存在,则创建一个空的 .env 文件
|
||||
if [ ! -f /app/.env ]; then
|
||||
touch /app/.env
|
||||
fi
|
||||
|
||||
# 启动服务
|
||||
exec "$@"
|
Loading…
Reference in New Issue
Block a user