Add more security and audit
Some checks failed
Build, Push & Deploy / Build & Push image (push) Failing after 56s
Build, Push & Deploy / Deploy naar VPS (push) Has been skipped
Build & Push / Build & Push image (push) Successful in 1m2s

This commit is contained in:
2026-02-28 14:47:33 +01:00
parent db87ea447a
commit 07bcfede75
11 changed files with 386 additions and 76 deletions

View File

@@ -18,6 +18,17 @@ services:
timeout: 5s
retries: 5
redis:
image: redis:7-alpine
container_name: leerdoelen_redis
restart: unless-stopped
command: redis-server --save "" --appendonly no --maxmemory 64mb --maxmemory-policy allkeys-lru --requirepass ${REDIS_PASSWORD:-changeme_redis}
healthcheck:
test: ["CMD", "redis-cli", "-a", "${REDIS_PASSWORD:-changeme_redis}", "ping"]
interval: 10s
timeout: 3s
retries: 3
backend:
# In productie: image uit de Gitea registry (gezet door CI/CD pipeline)
# Lokaal ontwikkelen: verander naar 'build: ./backend'
@@ -40,6 +51,7 @@ services:
GOOGLE_CLIENT_SECRET: ${GOOGLE_CLIENT_SECRET:-}
BASE_URL: ${BASE_URL:-http://localhost}
ORG_NAME: ${ORG_NAME:-GO! Scholengroep}
REDIS_URL: redis://:${REDIS_PASSWORD:-changeme_redis}@redis:6379/0
volumes:
- ./doelen:/app/doelen:ro # JSON doelen bestanden (read-only)
ports:
@@ -47,6 +59,8 @@ services:
depends_on:
db:
condition: service_healthy
redis:
condition: service_healthy
# Nginx container verwijderd — SSL offloading gebeurt door de host nginx.
# Flask is bereikbaar op 127.0.0.1:${APP_PORT} van de host.