Settings + fix startup

This commit is contained in:
2026-04-30 12:41:42 +02:00
parent 610dee365c
commit 62b5d0b998
16 changed files with 1340 additions and 247 deletions
+7 -6
View File
@@ -8,7 +8,6 @@ services:
target: builder
args:
PYTHON_VERSION: ${PYTHON_VERSION}
PYTHON_VERSION_SHORT: ${PYTHON_VERSION_SHORT}
UV_VERSION: ${UV_VERSION}
command: python scripts/bootstrap.py
networks:
@@ -22,7 +21,6 @@ services:
context: .
args:
PYTHON_VERSION: ${PYTHON_VERSION}
PYTHON_VERSION_SHORT: ${PYTHON_VERSION_SHORT}
UV_VERSION: ${UV_VERSION}
depends_on:
alfred-init:
@@ -33,13 +31,15 @@ services:
required: true
- path: .env.secrets
required: true
- path: .env.make
required: true
volumes:
- ./data:/data
- ./logs:/logs
# TODO: Hot reload (comment out in production)
#- ./alfred:/home/appuser/alfred
- ./alfred:/home/appuser/alfred
command: >
sh -c "python -u -m uvicorn alfred.app:app --host 0.0.0.0 --port 8000 2>&1 | tee -a /logs/alfred.log"
sh -c "python -u -m uvicorn alfred.app:app --host 0.0.0.0 --port 8000 --reload 2>&1 | tee -a /logs/alfred.log"
networks:
- alfred-net
@@ -89,9 +89,10 @@ services:
- path: .env.secrets
required: true
environment:
# Remap value name
- MONGO_INITDB_ROOT_USERNAME=${MONGO_USER}
- MONGO_INITDB_ROOT_PASSWORD=${MONGO_PASSWORD}
# Fix MongoDB + Linux kernel >= 6.19
- GLIBC_TUNABLES=glibc.cpu.hwcaps=-SHSTK
ports:
- "${MONGO_PORT}:${MONGO_PORT}"
volumes:
@@ -99,7 +100,7 @@ services:
- ./mongod.conf:/etc/mongod.conf:ro
command: ["mongod", "--config", "/etc/mongod.conf"]
healthcheck:
test: mongosh --quiet -u "${MONGO_USER}" -p "${MONGO_PASSWORD}" --authenticationDatabase admin --eval "db.adminCommand('ping')"
test: bash -c "echo > /dev/tcp/localhost/27017"
interval: 10s
timeout: 5s
retries: 5