feat: inject Navidrome/slskd/Threadfin secrets from Infisical
Replace hardcoded env vars with Infisical entrypoint wrapper that fetches TOKEN_SECRET, THREADFIN_*, NAVIDROME_*, and SLSKD_* from the claude-ops/media secret path at container startup. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
b9551d7597
commit
a54e003196
|
|
@ -9,21 +9,22 @@ services:
|
||||||
- ALL
|
- ALL
|
||||||
security_opt:
|
security_opt:
|
||||||
- no-new-privileges:true
|
- no-new-privileges:true
|
||||||
|
volumes:
|
||||||
|
- /opt/infisical/entrypoint-wrapper.sh:/infisical-entrypoint.sh:ro
|
||||||
|
entrypoint: ["/infisical-entrypoint.sh"]
|
||||||
|
command: ["node", "server.js"]
|
||||||
environment:
|
environment:
|
||||||
|
- INFISICAL_CLIENT_ID=${INFISICAL_CLIENT_ID}
|
||||||
|
- INFISICAL_CLIENT_SECRET=${INFISICAL_CLIENT_SECRET}
|
||||||
|
- INFISICAL_PROJECT_SLUG=claude-ops
|
||||||
|
- INFISICAL_SECRET_PATH=/media
|
||||||
|
- INFISICAL_URL=http://infisical:8080
|
||||||
- SMTP_HOST=${SMTP_HOST:-mail.rmail.online}
|
- SMTP_HOST=${SMTP_HOST:-mail.rmail.online}
|
||||||
- SMTP_PORT=${SMTP_PORT:-587}
|
- SMTP_PORT=${SMTP_PORT:-587}
|
||||||
- SMTP_USER=${SMTP_USER}
|
- SMTP_USER=${SMTP_USER}
|
||||||
- SMTP_PASS=${SMTP_PASS}
|
- SMTP_PASS=${SMTP_PASS}
|
||||||
- ADMIN_EMAIL=${ADMIN_EMAIL:-jeff@jeffemmett.com}
|
- ADMIN_EMAIL=${ADMIN_EMAIL:-jeff@jeffemmett.com}
|
||||||
- TOKEN_SECRET=${TOKEN_SECRET}
|
|
||||||
- THREADFIN_URL=https://threadfin.jefflix.lol
|
- THREADFIN_URL=https://threadfin.jefflix.lol
|
||||||
- THREADFIN_USER=${THREADFIN_USER}
|
|
||||||
- THREADFIN_PASS=${THREADFIN_PASS}
|
|
||||||
- NAVIDROME_URL=${NAVIDROME_URL:-https://music.jefflix.lol}
|
|
||||||
- NAVIDROME_USER=${NAVIDROME_USER}
|
|
||||||
- NAVIDROME_PASS=${NAVIDROME_PASS}
|
|
||||||
- SLSKD_URL=${SLSKD_URL:-https://slskd.jefflix.lol}
|
|
||||||
- SLSKD_API_KEY=${SLSKD_API_KEY}
|
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
- "traefik.http.routers.jefflix-website.rule=Host(`jefflix.lol`) || Host(`www.jefflix.lol`)"
|
- "traefik.http.routers.jefflix-website.rule=Host(`jefflix.lol`) || Host(`www.jefflix.lol`)"
|
||||||
|
|
@ -36,7 +37,11 @@ services:
|
||||||
start_period: 15s
|
start_period: 15s
|
||||||
networks:
|
networks:
|
||||||
- traefik-public
|
- traefik-public
|
||||||
|
- infisical-internal
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
traefik-public:
|
traefik-public:
|
||||||
external: true
|
external: true
|
||||||
|
infisical-internal:
|
||||||
|
external: true
|
||||||
|
name: infisical_infisical-internal
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue