Ortus-Solutions / firstDockerCompose

A group of Docker-Compose scenarios to help you learn how to create your first Docker Compose file
https://www.ortussolutions.com/events/container-roadshow-2017
11 stars 4 forks source link

Port Assignmements #5

Open CFWHISPERER opened 6 years ago

CFWHISPERER commented 6 years ago

I recently used this docker-compose.yml to install CommandBox, Lucee and MySQL

version: "3"

services:

CFML Engine

cfml: image: ortussolutions/commandbox

bind public port to 8090

ports:
  - "8090:8090"
volumes:
  - ./www:/app

MySQL Server

mysql: image: mysql environment: MYSQL_ROOT_PASSWORD: "mypassword"

In the console I see these messages...

cfml_1 | [INFO ] runwar.server: ** cfml_1 | [INFO ] runwar.server: * starting 'stop' listener thread - Host: 0.0.0.0 - Socket: 35993 cfml_1 | [INFO ] runwar.server: **** cfml_1 | [INFO ] runwar.server: Server is up - http-port:8080 stop-port:35993 PID:150 version 3.8.1-SNAPSHOT cfml_1 | [INFO ] runwar.context: app [lucee 5.2.9+31] Server is up - http-port:8080 stop-port:35993 PID:150 version 3.8.1-SNAPSHOT

Note port 8080 is shown.

I am attaching the console output in case i dockerInstallScript.txt t helps.

jfarraraains commented 3 years ago

While that is old it seems it should have been 8090:8080 to get it working. The machine port is based on the machine or container instance if you prefer. It should be 8080.