ui redesign, markdown fix + metadata and auth header
This commit is contained in:
+26
-5
@@ -1,19 +1,34 @@
|
||||
services:
|
||||
backend:
|
||||
build:
|
||||
build:
|
||||
context: ./backend
|
||||
dockerfile: Dockerfile
|
||||
ports:
|
||||
- "3000:3000"
|
||||
expose:
|
||||
- "3000"
|
||||
volumes:
|
||||
- ./data:/app/data
|
||||
environment:
|
||||
- PORT=3000
|
||||
- ADMIN_TOKEN=${ADMIN_TOKEN:-default_insecure_token}
|
||||
# No fallback — fail fast if ADMIN_TOKEN isn't set in your .env.
|
||||
- ADMIN_TOKEN=${ADMIN_TOKEN:?ADMIN_TOKEN must be set in .env}
|
||||
- DATA_DIR=/app/data
|
||||
- COOKIE_SECURE=${COOKIE_SECURE:-true}
|
||||
- FRONTEND_ORIGIN=${FRONTEND_ORIGIN:-}
|
||||
- RUST_LOG=${RUST_LOG:-info}
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- internal_net
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-fsS", "http://localhost:3000/healthz"]
|
||||
interval: 15s
|
||||
timeout: 3s
|
||||
retries: 5
|
||||
start_period: 10s
|
||||
logging:
|
||||
driver: json-file
|
||||
options:
|
||||
max-size: "10m"
|
||||
max-file: "3"
|
||||
|
||||
frontend:
|
||||
build:
|
||||
@@ -24,10 +39,16 @@ services:
|
||||
environment:
|
||||
- PUBLIC_API_URL=http://backend:3000
|
||||
depends_on:
|
||||
- backend
|
||||
backend:
|
||||
condition: service_healthy
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- internal_net
|
||||
logging:
|
||||
driver: json-file
|
||||
options:
|
||||
max-size: "10m"
|
||||
max-file: "3"
|
||||
|
||||
networks:
|
||||
internal_net:
|
||||
|
||||
Reference in New Issue
Block a user