Skip to content

Commit 5b2696f

Browse files
committed
fix: Remove obsolete version attribute and simplify direnv
- Removed 'version: 3.8' from compose.yml (obsolete in Compose V2) - Removed redundant moodle-help function from .envrc - Simplified to just point users to 'make help' This eliminates the Docker Compose warning about obsolete version attribute.
1 parent faf69d8 commit 5b2696f

File tree

2 files changed

+1
-16
lines changed

2 files changed

+1
-16
lines changed

.envrc

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,9 @@ dotenv_if_exists .env
88
# Set compose file for Traefik mode (uncomment to enable)
99
# export COMPOSE_FILE=compose.yml:compose.traefik.yml
1010

11-
# Helper functions
12-
function moodle-help() {
13-
echo "Moodle Docker Stack - Quick Commands:"
14-
echo ""
15-
echo " make help - Show all available commands"
16-
echo " make clone-moodle - Clone Moodle repository"
17-
echo " make setup - Create .env file"
18-
echo " make start - Start the stack"
19-
echo " make logs - View logs"
20-
echo " make status - Check container status"
21-
echo ""
22-
}
23-
2411
# Show help on first load
2512
if [ -z "$MOODLE_DIRENV_LOADED" ]; then
2613
export MOODLE_DIRENV_LOADED=1
2714
echo "✅ Moodle Docker environment loaded"
28-
echo " Run 'moodle-help' for available commands"
15+
echo " Run 'make help' for available commands"
2916
fi

compose.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
version: '3.8'
2-
31
# Moodle 4.5 Production Stack
42
# Services: Moodle + MariaDB 11 + Valkey 9 + Ofelia (cron)
53

0 commit comments

Comments
 (0)