Sign inSign up

radstudio/webstencils-demo

By radstudio

•Updated 9 months ago

Delphi WebStencils demo web app with customer management, tasks, and authentication

Image
Web servers
0

6.1K

radstudio/webstencils-demo repository overview

⁠Delphi WebStencils Demo

⁠Quick Start

docker run -d -p 8080:8080 --name webstencils-demo radstudio/webstencils-demo:latest

Access the application at http://localhost:8080

⁠Configuration

⁠Environment Variables
VariableDefaultDescription
DEMO_MODEtrueEnable automatic data reset mode. Set to false or unset to disable.
DEMO_RESET_INTERVAL900Reset interval in seconds (default: 15 minutes). Only applies when DEMO_MODE=true.
APP_LOG_PATH/app/logs/app.logApplication log file path
APP_DB_PATH/app/data/database.sqlite3Database file path
APP_RESOURCES_PATH/app/resourcesResources directory path
⁠Volumes

For persistent data storage, mount these volumes:

  • /app/logs - Application logs
  • /app/data - Database storage
⁠Ports
  • 8080 - Web application port

⁠Examples

⁠Basic Run with Persistent Storage
docker run -d -p 8080:8080 \
  -v webstencils-logs:/app/logs \
  -v webstencils-data:/app/data \
  --name webstencils-demo \
  radstudio/webstencils-demo:latest
⁠Disable Demo Mode (Persistent Data)
docker run -d -p 8080:8080 \
  -e DEMO_MODE=false \
  -v webstencils-logs:/app/logs \
  -v webstencils-data:/app/data \
  --name webstencils-demo \
  radstudio/webstencils-demo:latest
⁠Custom Reset Interval
docker run -d -p 8080:8080 \
  -e DEMO_RESET_INTERVAL=600 \
  --name webstencils-demo \
  radstudio/webstencils-demo:latest
⁠Docker Compose
version: '3.8'

services:
  webstencils-demo:
    image: radstudio/webstencils-demo:latest
    ports:
      - "8080:8080"
    environment:
      - DEMO_MODE=true
      - DEMO_RESET_INTERVAL=900
    volumes:
      - webstencils-logs:/app/logs
      - webstencils-data:/app/data

volumes:
  webstencils-logs:
  webstencils-data:

⁠Health Check

The container includes a built-in health check that monitors the /health endpoint. Check container health status:

docker ps

⁠Demo Mode

When DEMO_MODE=true (default), the application automatically resets data to initial state at the configured interval. This is ideal for public demonstrations where you want to ensure a clean state.

To run with persistent data, set DEMO_MODE=false and mount the /app/data volume.

⁠Default Credentials

  • User: demo / demo123
  • Admin: admin / admin123

Tag summary

Content type

Image

Digest

sha256:6a14f1946…

Size

36.1 MB

Last updated

9 months ago

docker pull radstudio/webstencils-demo