Hi,
I am using Docker Compose for a Lucee app. Docker is loading Lucee and Mysql ok. I can use Adminer to access the database, I can go to Lucee Admin.
But when I try to create the datasouce, it does not connect with MySQL Server.
Here is the docker-compose.yml file:
version: “3”
services:
parentedb:
container_name: parente_db
image: mysql
command: --default-authentication-plugin=mysql_native_password
restart: always
environment:
MYSQL_ROOT_PASSWORD: secret
MYSQL_DATABASE: parente
volumes:
- “./db-data:/var/lib/mysql”
ports:
- 3306:3306
adminer:
container_name: parente_adminer
image: adminer
restart: always
ports:
- 8080:8080
cfml:
container_name: parente_cfml
image: lucee/lucee
environment:
MYSQL_HOST: parentedb
MYSQL_DATABASE: parente
volumes:
- “./www:/var/www”
- “./password.txt:/opt/lucee/server/lucee-server/context/password.txt”
ports:
- 4040:8888
Can someone help me ?
Thanks
Don’t forget to tell us about your stack!
OS: Mojave
Java Version: 1.8.0_121
Tomcat Version: 7.0
Lucee Version: Latest