Coolify compose: inject secrets via env vars, drop env_file + fixed container names
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -11,15 +11,19 @@ services:
|
|||||||
build:
|
build:
|
||||||
context: ..
|
context: ..
|
||||||
dockerfile: docker/backend.Dockerfile
|
dockerfile: docker/backend.Dockerfile
|
||||||
container_name: visigine-backend
|
# Secrets are injected from Coolify env vars (set them in the Coolify UI).
|
||||||
env_file:
|
# server/.env is git-ignored and absent in Coolify's clone — so no env_file.
|
||||||
- ../server/.env
|
|
||||||
environment:
|
environment:
|
||||||
NODE_ENV: production
|
NODE_ENV: production
|
||||||
PORT: "3001"
|
PORT: "3001"
|
||||||
ALLOWED_ORIGINS: "https://visigine.de"
|
ALLOWED_ORIGINS: "https://visigine.de"
|
||||||
ALLOW_PRIVATE_HOSTS: "0"
|
ALLOW_PRIVATE_HOSTS: "0"
|
||||||
DB_PATH: "/data/visigine.db"
|
DB_PATH: "/data/visigine.db"
|
||||||
|
MISTRAL_KEY: ${MISTRAL_KEY}
|
||||||
|
ADMIN_TOKEN: ${ADMIN_TOKEN}
|
||||||
|
OPENAI_KEY: ${OPENAI_KEY:-}
|
||||||
|
PERPLEXITY_KEY: ${PERPLEXITY_KEY:-}
|
||||||
|
ANTHROPIC_KEY: ${ANTHROPIC_KEY:-}
|
||||||
expose:
|
expose:
|
||||||
- "3001"
|
- "3001"
|
||||||
volumes:
|
volumes:
|
||||||
@@ -33,7 +37,6 @@ services:
|
|||||||
build:
|
build:
|
||||||
context: ..
|
context: ..
|
||||||
dockerfile: docker/frontend.Dockerfile
|
dockerfile: docker/frontend.Dockerfile
|
||||||
container_name: visigine-frontend
|
|
||||||
# No host port binding: on the Coolify server host-port 8080 is already taken
|
# No host port binding: on the Coolify server host-port 8080 is already taken
|
||||||
# by the Coolify/Traefik proxy. Coolify routes the domain (visigine.de) to
|
# by the Coolify/Traefik proxy. Coolify routes the domain (visigine.de) to
|
||||||
# this container's port 80 via Traefik. For local `docker compose` testing,
|
# this container's port 80 via Traefik. For local `docker compose` testing,
|
||||||
|
|||||||
Reference in New Issue
Block a user