-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.env.example
More file actions
75 lines (67 loc) · 3.3 KB
/
config.env.example
File metadata and controls
75 lines (67 loc) · 3.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# Configuration for LLM Development Stack
# Copy this file to config.env and edit the paths for your environment
#
# This configuration can be used as-is without modification.
# All paths are relative to BASE_DIR and will be created automatically.
#
# Default directory structure (using $HOME/llmops_services as BASE_DIR):
#
# $HOME/llmops_services/
# ├── forgejo/
# │ ├── bin/
# │ │ └── forgejo # Forgejo binary
# │ ├── data/
# │ │ └── gitea/
# │ │ ├── conf/
# │ │ │ └── app.ini # Forgejo configuration
# │ │ ├── gitea.db # SQLite database
# │ │ └── gitea-repositories/ # Git repositories
# │ └── logs/
# │ └── forgejo.log # Forgejo application logs
# ├── mlflow/
# │ ├── tracking/ # MLflow tracking database location
# │ ├── artifacts/ # MLflow artifact storage
# │ ├── logs/ # MLflow application logs
# │ └── mlflow.db # MLflow SQLite database
# ├── venv/ # Python virtual environment
# │ ├── bin/
# │ │ ├── activate # Virtual environment activation script
# │ │ ├── mlflow # MLflow CLI
# │ │ └── python # Python interpreter
# │ └── lib/python3.x/site-packages/
# ├── logs/ # Shared log directory for service startup
# └── activate.sh # Environment activation script
#
# Additional files created in project root during runtime:
# ├── .forgejo.pid # Forgejo process ID (for shutdown)
# ├── .forgejo.port # Forgejo port number (for access)
# ├── .mlflow.pid # MLflow process ID (for shutdown)
# └── .mlflow.port # MLflow port number (for access)
# Base directory for all services (change to your preferred location)
BASE_DIR="$HOME/llmops_services"
# Forgejo configuration
FORGEJO_HOME="$BASE_DIR/forgejo"
FORGEJO_DATA_DIR="$FORGEJO_HOME/data"
FORGEJO_LOG_DIR="$FORGEJO_HOME/logs"
FORGEJO_BINARY_PATH="$FORGEJO_HOME/bin/forgejo"
FORGEJO_VERSION="12.0.0" # Change to desired version
# MLflow configuration
MLFLOW_HOME="$BASE_DIR/mlflow"
MLFLOW_TRACKING_URI="$MLFLOW_HOME/tracking"
MLFLOW_ARTIFACT_ROOT="$MLFLOW_HOME/artifacts"
MLFLOW_LOG_DIR="$MLFLOW_HOME/logs"
MLFLOW_BACKEND_STORE="sqlite:///$MLFLOW_HOME/mlflow.db"
# Python virtual environment for MLflow
PYTHON_VENV_DIR="$BASE_DIR/venv"
# Shared logs directory
LOGS_DIR="$BASE_DIR/logs"
# Default ports (will be auto-detected if busy)
DEFAULT_FORGEJO_PORT=3000
DEFAULT_MLFLOW_PORT=5000
# Service management settings
GRACEFUL_SHUTDOWN_TIMEOUT=10 # Seconds to wait for graceful shutdown before force kill
STATUS_CHECK_TIMEOUT=2 # Seconds to wait when testing service responsiveness
MLFLOW_SERVER_HOST="127.0.0.1" # MLflow server host (127.0.0.1 for localhost only, 0.0.0.0 for all interfaces)
FORGEJO_SERVER_HOST="127.0.0.1" # Forgejo server host (127.0.0.1 for localhost only, 0.0.0.0 for all interfaces)
# Backup settings
BACKUP_BASE_DIR="$BASE_DIR/backups" # Directory to store backups