Closed ljq29 closed 1 month ago
You seem to have removed the env_file
attributes from the docker compose, is that intentional?
I am using portainer, So I put the environment in the web Instead of env file.
---Original---
From: "Mohamed @.>
Date: Sun, Oct 6, 2024 01:24 AM
To: @.>;
Cc: @.**@.>;
Subject: Re: [hoarder-app/hoarder] error:https://next-auth.js.org/errors#no_secret Please define a secret
inproduction. r [MissingSecretError]: Please define a secret
in production.(Issue #487)
You seem to have removed the env_file attributes from the docker compose, is that intentional?
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
I think with portainer, after you put the env in the web, you still need to add env_file as stack.env
.
I used to use my way and its work. But in this case it seems failled.
Anyway, I will try your method.
---Original---
From: "Mohamed @.>
Date: Sun, Oct 6, 2024 01:27 AM
To: @.>;
Cc: @.**@.>;
Subject: Re: [hoarder-app/hoarder] error:https://next-auth.js.org/errors#no_secret Please define a secret
inproduction. r [MissingSecretError]: Please define a secret
in production.(Issue #487)
I think with portainer, after you put the env in the web, you still need to add env_file as stack.env.
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
I think with portainer, after you put the env in the web, you still need to add env_file as
stack.env
.
I finally put like this to resolve problem, instead of define NEXTAUTH_SECRET env in web.
services: web:
image: ghcr.nju.edu.cn/hoarder-app/hoarder-web:release
restart: unless-stopped
volumes:
- /volume1/Docker/hoarder/data:/data
# ports:
# - 3000:3000 #修改成自己想要的端口
expose:
- 3000
environment:
REDIS_HOST: redis
MEILI_ADDR: http://meilisearch:7700
DATA_DIR: /data
NEXTAUTH_SECRET: "vQNPMiKQ4cVHM3EjGQm8YN0rG+hIY4erC4rGRuZTiiY="
networks:
- network-bridge
- traefik
Docker build,docker compose here:
.env
error in web
error in logs