Feature flag management system with RESTful API and web admin interface
5.9K
/app/public
# Run with environment variables
docker run -d \
--name phlag \
-p 8000:80 \
-e DB_PHLAG_TYPE=mysql \
-e DB_PHLAG_HOST=db.example.com \
-e DB_PHLAG_PORT=3306 \
-e DB_PHLAG_DB=phlag \
-e DB_PHLAG_USER=phlag_user \
-e DB_PHLAG_PASS=secret \
-e [email protected] \
brianlmoon/phlag:latest
# Run with volume-mounted config
docker run -d \
--name phlag \
-p 8000:80 \
-v /path/to/config.ini:/app/etc/config.ini:ro \
brianlmoon/phlag:latest
| Variable | Required | Default | Description |
|---|---|---|---|
DB_PHLAG_TYPE | Yes | - | Database type (mysql, pgsql, or sqlite) |
DB_PHLAG_HOST | Yes* | - | Database server hostname (*not required for SQLite) |
DB_PHLAG_PORT | No | 3306/5432 | Database server port (auto-detected based on type) |
DB_PHLAG_DB | Yes | - | Database name (or path for SQLite) |
DB_PHLAG_USER | No | - | Database username |
DB_PHLAG_PASS | No | - | Database password |
| Variable | Required | Default | Description |
|---|---|---|---|
MAILER_FROM_ADDRESS | No | - | Email sender address (required for password reset) |
MAILER_FROM_NAME | No | Phlag Admin | Email sender name |
MAILER_METHOD | No | mail | Email method (smtp or mail) |
SMTP_HOST | No* | - | SMTP server hostname (*required if MAILER_METHOD=smtp) |
SMTP_PORT | No | 587 | SMTP server port |
SMTP_ENCRYPTION | No | tls | SMTP encryption (tls or ssl) |
SMTP_USERNAME | No | - | SMTP authentication username |
SMTP_PASSWORD | No | - | SMTP authentication password |
| Variable | Required | Default | Description |
|---|---|---|---|
SESSION_TIMEOUT | No | 1800 | Session timeout in seconds (30 minutes) |
PHLAG_BASE_URL_PATH | No | - | Base URL path for subdirectory installs (e.g., /phlag) |
Mount a custom config.ini file to /app/etc/config.ini:
docker run -d \
-v /path/to/config.ini:/app/etc/config.ini:ro \
brianlmoon/phlag:latest
Note: Volume-mounted config takes precedence over environment variables.
docker run -d \
-v phlag-nginx-logs:/var/log/nginx \
-v phlag-php-logs:/var/log/php \
brianlmoon/phlag:latest
BSD 3-Clause License - Copyright (c) 2025, Brian Moon
Content type
Image
Digest
sha256:c3975bd43…
Size
160.2 MB
Last updated
18 days ago
docker pull brianlmoon/phlag