Skip to content

Latest commit

 

History

History
 
 

cf-2021-update-specified

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Compose sample application

ColdFusion standalone application

Project structure:

.
├── docker-compose.yml
├── app
    └── test.cfm
    └── dumpserver.cfm

docker-compose.yml

services:
    coldfusion: 
        image: adobecoldfusion/coldfusion2021:2021.0.4
        ports:
        - "8500:8500"
        environment:
            - acceptEULA=YES
            - password=123
        volumes:
            - ./app:/app

Deploy with docker-compose

$ docker-compose up -d
- Network cf-latest_default         Created                                                                       0.8s
 - Container cf-latest-coldfusion-1  Created                                                                       0.2s
Attaching to cf-latest-coldfusion-1
cf-2021-update-specified-coldfusion-1  | Updating webroot to /app
cf-2021-update-specified-coldfusion-1  | Configuring virtual directories
cf-2021-update-specified-coldfusion-1  | Updating password
cf-2021-update-specified-coldfusion-1  | Serial Key: Not Provided       
cf-2021-update-specified-coldfusion-1  | Previous Serial Key: Not Provided
cf-2021-update-specified-coldfusion-1  | Starting ColdFusion
...

Expected result

Listing containers must show one container running and the port mapping as below (note that the version reported may differ for you, in using the "latest" tag):

$ docker ps
CONTAINER ID   IMAGE                                     COMMAND                  CREATED          STATUS                    PORTS                                         NAMES
a7df2d9ffc26   adobecoldfusion/coldfusion2021:2021.0.2   "sh /opt/startup/sta…"   6 minutes ago   Up 6 minutes (healthy)   8118/tcp, 45564/tcp, 0.0.0.0:8500->8500/tcp   cf-2021-coldfusion-1

After the application starts, navigate to http://localhost:8500 in your web browser to see available files in CF's default webroot (added to by the /app volume mapping)

Or run http://localhost:8500/test.cfm in your web browser to see the test page in the mapped /app folder, or run via curl:

$ curl http://localhost:8500/test.cfm

Which will show:
Hello World! at 03-Oct-2021 02:25:44

Run this to see a dump of the server.coldfusion struct within the container: navigate to http://localhost:8500/dumpserver.cfm in your web browser or run:

$ curl http://localhost:8500/dumpserver.cfm

Stop and remove the containers

$ docker-compose down