Add .env support in to the docker compose && remove the old .env.exmple data.

This commit is contained in:
yuanhau 2025-05-25 19:31:28 +08:00
parent f3204cb574
commit ec589d2f85
2 changed files with 3 additions and 7 deletions

View file

@ -23,13 +23,6 @@ GROQ_API_KEY=""
# PASSWORD SALT
PASSWORD_HASH_SALT=""
# SCRAPING
POSTGRES_DB=""
POSTGRES_USER=""
POSTGRES_PASSWORD=""
POSTGRES_HOST=""
POSTGRES_PORT=""
# CF TURNSTILE
NUXT_CF_TURNSTILE_SITE_KEY=""
NUXT_CF_TURNSTILE_SECRET_KEY=""

View file

@ -22,6 +22,9 @@ services:
- "traefik.http.services.newsanalyze.loadbalancer.server.port=3000"
- "com.centurylinklabs.watchtower.enable=true"
restart: unless-stopped
env_file:
- path: ./.env
required: true
deploy:
mode: replicated
replicas: 2