Skip to content

Base image used to make deployment of ColdFusion / CFML code easy in the cloud or on prem using Docker.

Notifications You must be signed in to change notification settings

quetwo/cf-docker-skel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CF Docker Project Skeleton


Basics on how to use this skel for your own projects

  1. Clone the Repository.
  2. Create the DB Secrets file. This file must be named db/secrets.txt. A sample file is included to show what this would look like.
  3. Create the shared DB Secrets file. This file must be named db/secrets_shared.txt. A sample file is included to show what this would look like. This file is exposed to the frontend and can be used to auto-config DB connections.
  4. Create the Front-End Secrets file. This file must be named frontend/secrets.txt. A sample file is included to show what this would look like. You can enable and disable the lucee admin and set the admin password here. LUCEE_ADMIN_PASSWORD and ADMIN_PASSWORD must match.
  5. Place your CF code in the frontend/webroot/ folder. This will be the root of your website.
  6. All references to the database in your code will be on the hostname db instead of localhost.
  7. Place any SQL statements you want run on the first startup of your SQL database in db/dumps/. This would typically be an export or backup of an existing database. These SQL statements are ONLY run on the initial start.
  8. Modify the docker-compose.yml file to change the quetwo/cf-docker-skel to match your DockerHub username and project name.
  9. Launch the Docker image. docker-compose up
  10. To shut down the server, press [CTL][C]. To re-run, enter the docker-compose up command.

Deploying to production

  1. Get a DockerHub repository setup as a place to stage your images.
  2. Verify settings in docker-compose.yml are correct. You will want to make sure the image matches your DockerHub account and repository. Pay attention to line 10, in particular.
  3. Modify the proxy/config.toml to setup a proper SSL cert. You may need to read the Traefik docs on how to do this.
  4. Edit the push_production.bat file to match the settings for your final destination. In particular lines 18-22.
  5. Run the push_production.bat file. It should take a few minutes to push to DockerHub, then for your sevrer to pull the image and deploy.

About

Base image used to make deployment of ColdFusion / CFML code easy in the cloud or on prem using Docker.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published