fix deployment workflow - manual bootstrap copy and restart
This commit is contained in:
6
.gitignore
vendored
6
.gitignore
vendored
@@ -129,6 +129,12 @@ web_modules/
|
|||||||
.env.production.local
|
.env.production.local
|
||||||
.env.local
|
.env.local
|
||||||
|
|
||||||
|
# Config folder - keep only bootstrap example
|
||||||
|
config/.env
|
||||||
|
|
||||||
|
# Test files
|
||||||
|
test-agent
|
||||||
|
|
||||||
# parcel-bundler cache (https://parceljs.org/)
|
# parcel-bundler cache (https://parceljs.org/)
|
||||||
.cache
|
.cache
|
||||||
.parcel-cache
|
.parcel-cache
|
||||||
|
|||||||
13
README.md
13
README.md
@@ -65,19 +65,22 @@ RedFlag lets you manage software updates across all your servers from one dashbo
|
|||||||
### Server Deployment (Docker)
|
### Server Deployment (Docker)
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Clone and start
|
# Clone and configure
|
||||||
git clone https://github.com/Fimeg/RedFlag.git
|
git clone https://github.com/Fimeg/RedFlag.git
|
||||||
cd RedFlag
|
cd RedFlag
|
||||||
|
cp config/.env.bootstrap.example config/.env
|
||||||
|
docker-compose build
|
||||||
docker-compose up -d
|
docker-compose up -d
|
||||||
|
|
||||||
# Access web UI
|
# Access web UI and run setup
|
||||||
open http://localhost:3000
|
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
|
### Agent Installation
|
||||||
|
|||||||
@@ -9,7 +9,6 @@ services:
|
|||||||
POSTGRES_INITDB_ARGS: "--encoding=UTF-8 --lc-collate=C --lc-ctype=C"
|
POSTGRES_INITDB_ARGS: "--encoding=UTF-8 --lc-collate=C --lc-ctype=C"
|
||||||
volumes:
|
volumes:
|
||||||
- postgres-data:/var/lib/postgresql/data
|
- postgres-data:/var/lib/postgresql/data
|
||||||
- ./config/.env:/shared/.env
|
|
||||||
ports:
|
ports:
|
||||||
- "5432:5432"
|
- "5432:5432"
|
||||||
healthcheck:
|
healthcheck:
|
||||||
@@ -19,8 +18,7 @@ services:
|
|||||||
retries: 5
|
retries: 5
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
env_file:
|
env_file:
|
||||||
- ./config/.env.bootstrap.example
|
- ${ENV_FILE:-./config/.env}
|
||||||
- ./config/.env
|
|
||||||
|
|
||||||
server:
|
server:
|
||||||
build:
|
build:
|
||||||
@@ -30,7 +28,6 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- server-config:/app/config
|
- server-config:/app/config
|
||||||
- server-data:/app/data
|
- server-data:/app/data
|
||||||
- ./config/.env:/shared/.env
|
|
||||||
depends_on:
|
depends_on:
|
||||||
postgres:
|
postgres:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
@@ -39,8 +36,7 @@ services:
|
|||||||
command: ["./redflag-server"]
|
command: ["./redflag-server"]
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
env_file:
|
env_file:
|
||||||
- ./config/.env.bootstrap.example
|
- ${ENV_FILE:-./config/.env}
|
||||||
- ./config/.env
|
|
||||||
|
|
||||||
web:
|
web:
|
||||||
build:
|
build:
|
||||||
|
|||||||
Reference in New Issue
Block a user