wheels docker init
Initialize Docker configuration for your Wheels application.
Synopsis
Description
The wheels docker init
command creates Docker configuration files for containerizing your Wheels application. It generates a Dockerfile
, docker-compose.yml
, and supporting configuration files optimized for Wheels applications.
Options
--engine
CFML engine (lucee5, lucee6, adobe2018, adobe2021, adobe2023)
lucee6
--database
Database system (mysql, postgresql, sqlserver, none)
mysql
--port
Application port
8080
--with-nginx
Include Nginx reverse proxy
false
--with-redis
Include Redis for caching
false
--production
Generate production-ready configuration
false
--force
Overwrite existing Docker files
false
--help
Show help information
Examples
Basic initialization
Initialize with Adobe ColdFusion
Production setup with Nginx
Initialize with PostgreSQL
Full stack with Redis
What It Does
Creates Dockerfile optimized for CFML applications:
Base image selection based on engine
Dependency installation
Application file copying
Environment configuration
Generates docker-compose.yml with:
Application service
Database service (if selected)
Nginx service (if selected)
Redis service (if selected)
Network configuration
Volume mappings
Additional files:
.dockerignore
- Excludes unnecessary filesdocker-entrypoint.sh
- Container startup scriptConfiguration files for selected services
Generated Files
Dockerfile Example
docker-compose.yml Example
Configuration Options
Development Mode
Hot reload enabled
Source code mounted as volume
Debug ports exposed
Development databases
Production Mode
Optimized image size
Security hardening
Health checks
Restart policies
Resource limits
Use Cases
Local Development: Consistent development environment across team
Testing: Isolated test environments with different configurations
CI/CD: Containerized testing in pipelines
Deployment: Production-ready containers for cloud deployment
Environment Variables
Common environment variables configured:
WHEELS_ENV
Application environment
WHEELS_DATASOURCE
Database connection name
DB_HOST
Database hostname
DB_PORT
Database port
DB_NAME
Database name
DB_USER
Database username
DB_PASSWORD
Database password
Notes
Requires Docker and Docker Compose installed
Database passwords are set to defaults in development
Production configurations should use secrets management
The command detects existing Docker files and prompts before overwriting
See Also
wheels docker deploy - Deploy using Docker
wheels deploy - General deployment commands
wheels ci init - Initialize CI configuration
Last updated
Was this helpful?