Skip to content

Latest commit

 

History

History
70 lines (59 loc) · 2.35 KB

README.md

File metadata and controls

70 lines (59 loc) · 2.35 KB

Compose sample application

ColdFusion standalone application

Project structure:

.
├── compose.yaml
├── app
    └── test.cfm
    └── dumpserver.cfm

compose.yaml

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

Deploy with docker compose

$ docker compose up -d
- Network cf-2018-latest_default         Created                                                                       0.8s
 - Container cf-2018-latest-coldfusion-1  Created                                                                       0.2s
Attaching to cf-2018-latest-coldfusion-1
cf-2018-latest-coldfusion-1  | Updating webroot to /app
cf-2018-latest-coldfusion-1  | Configuring virtual directories
cf-2018-latest-coldfusion-1  | Updating password
cf-2018-latest-coldfusion-1  | Serial Key: Not Provided       
cf-2018-latest-coldfusion-1  | Previous Serial Key: Not Provided
cf-2018-latest-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/coldfusion2018:2018.0.12   "sh /opt/startup/sta…"   6 minutes ago   Up 6 minutes (healthy)   8118/tcp, 45564/tcp, 0.0.0.0:8500->8500/tcp   cf-2018-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