mirror of
https://github.com/freedbygrace/SQL.git
synced 2026-07-26 11:28:16 +00:00
Fix Docker Compose version warning and improve script permissions
DOCKER COMPOSE:
- Removed obsolete 'version' attribute from docker-compose.yml
- Keeps db-ui image as ghcr.io/n7olkachev/db-ui:latest
SCRIPT PERMISSIONS:
- Updated README.md with recursive chmod command: find . -name '*.sh' -exec chmod +x {} \;
- Updated QUICKSTART.md with Step 0: Make Scripts Executable
- Removed individual chmod commands from each step
- Single command makes all .sh files executable at once
DOCUMENTATION:
- Renumbered steps in QUICKSTART.md for clarity
- Step 0: Make Scripts Executable
- Step 1: Install Dependencies (Optional)
- Step 2: Start Docker Containers
- Step 3: Initialize Database Schema
- Step 4: Generate Test Data
This resolves the Docker Compose warning and simplifies the setup process with a single chmod command.
This commit is contained in:
@@ -108,14 +108,19 @@ git clone https://github.com/freedbygrace/SQL.git
|
||||
cd SQL
|
||||
```
|
||||
|
||||
### 2. Install Dependencies (Optional)
|
||||
### 2. Make Scripts Executable
|
||||
```bash
|
||||
# Make all .sh files executable recursively
|
||||
find . -name "*.sh" -exec chmod +x {} \;
|
||||
```
|
||||
|
||||
### 3. Install Dependencies (Optional)
|
||||
```bash
|
||||
# Only if you don't have Docker, psql, etc.
|
||||
chmod +x scripts/install-dependencies.sh
|
||||
./scripts/install-dependencies.sh
|
||||
```
|
||||
|
||||
### 3. Start the Database
|
||||
### 4. Start the Database
|
||||
```bash
|
||||
docker-compose up -d
|
||||
```
|
||||
@@ -124,17 +129,15 @@ This starts:
|
||||
- **PostgreSQL 16** on port `5432`
|
||||
- **DB-UI** web interface on port `3000`
|
||||
|
||||
### 4. Initialize the Schema
|
||||
### 5. Initialize the Schema
|
||||
```bash
|
||||
chmod +x scripts/setup-database.sh
|
||||
./scripts/setup-database.sh
|
||||
```
|
||||
|
||||
**Note:** The script will automatically check for required dependencies and prompt you to install them if missing.
|
||||
|
||||
### 5. Generate Test Data
|
||||
### 6. Generate Test Data
|
||||
```bash
|
||||
chmod +x data/generate_data.sh
|
||||
./data/generate_data.sh
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user