- Clone the Repository.
- 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. - 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. - 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. - Place your CF code in the
frontend/webroot/
folder. This will be the root of your website. - All references to the database in your code will be on the hostname
db
instead oflocalhost
. - 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. - Modify the
docker-compose.yml
file to change thequetwo/cf-docker-skel
to match your DockerHub username and project name. - Launch the Docker image.
docker-compose up
- To shut down the server, press [CTL][C]. To re-run, enter the
docker-compose up
command.
- Get a DockerHub repository setup as a place to stage your images.
- 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. - Modify the proxy/config.toml to setup a proper SSL cert. You may need to read the Traefik docs on how to do this.
- Edit the
push_production.bat
file to match the settings for your final destination. In particular lines 18-22. - 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.