Add SQLite database integration with SQLAlchemy async, migration tooling, and comprehensive CRUD operations for hosts, tasks, schedules, and logs
This commit is contained in:
+6
-1
@@ -39,11 +39,16 @@ COPY app/ ./
|
||||
COPY ansible/ /ansible/
|
||||
|
||||
# Création du répertoire pour les clés SSH (sera monté en volume)
|
||||
RUN mkdir -p /app/ssh_keys
|
||||
RUN mkdir -p /app/ssh_keys /app/data
|
||||
|
||||
# Configuration Ansible pour utiliser le bon répertoire
|
||||
ENV ANSIBLE_CONFIG=/ansible/ansible.cfg
|
||||
|
||||
# Variables par défaut pour la base SQLite dans le conteneur
|
||||
ENV HOMELAB_DATA_DIR=/app/data
|
||||
ENV DB_PATH=/app/data/homelab.db
|
||||
ENV DATABASE_URL=sqlite+aiosqlite:////app/data/homelab.db
|
||||
|
||||
# Exposition du port
|
||||
EXPOSE 8000
|
||||
|
||||
|
||||
Reference in New Issue
Block a user