fix deployment workflow - manual bootstrap copy and restart

This commit is contained in:
Fimeg
2025-10-31 07:41:00 -04:00
parent 44bb05ca5d
commit e5d59eac02
3 changed files with 16 additions and 11 deletions

6
.gitignore vendored
View File

@@ -129,6 +129,12 @@ web_modules/
.env.production.local
.env.local
# Config folder - keep only bootstrap example
config/.env
# Test files
test-agent
# parcel-bundler cache (https://parceljs.org/)
.cache
.parcel-cache

View File

@@ -65,19 +65,22 @@ RedFlag lets you manage software updates across all your servers from one dashbo
### Server Deployment (Docker)
```bash
# Clone and start
# Clone and configure
git clone https://github.com/Fimeg/RedFlag.git
cd RedFlag
cp config/.env.bootstrap.example config/.env
docker-compose build
docker-compose up -d
# Access web UI
# Access web UI and run setup
open http://localhost:3000
# Follow setup wizard, then copy generated .env content
# Follow setup wizard to create admin account
# Restart with new configuration
docker-compose down
docker-compose up -d
```
The setup wizard runs automatically on first launch. It'll generate secure secrets and walk you through creating an admin account.
---
### Agent Installation

View File

@@ -9,7 +9,6 @@ services:
POSTGRES_INITDB_ARGS: "--encoding=UTF-8 --lc-collate=C --lc-ctype=C"
volumes:
- postgres-data:/var/lib/postgresql/data
- ./config/.env:/shared/.env
ports:
- "5432:5432"
healthcheck:
@@ -19,8 +18,7 @@ services:
retries: 5
restart: unless-stopped
env_file:
- ./config/.env.bootstrap.example
- ./config/.env
- ${ENV_FILE:-./config/.env}
server:
build:
@@ -30,7 +28,6 @@ services:
volumes:
- server-config:/app/config
- server-data:/app/data
- ./config/.env:/shared/.env
depends_on:
postgres:
condition: service_healthy
@@ -39,8 +36,7 @@ services:
command: ["./redflag-server"]
restart: unless-stopped
env_file:
- ./config/.env.bootstrap.example
- ./config/.env
- ${ENV_FILE:-./config/.env}
web:
build: