Skip to content

Instantly share code, notes, and snippets.

@trilobiet
Created May 28, 2025 15:02
Show Gist options
  • Save trilobiet/862e74cee22930a31151343261ff2880 to your computer and use it in GitHub Desktop.
Save trilobiet/862e74cee22930a31151343261ff2880 to your computer and use it in GitHub Desktop.
Lucee Docker Compose
services:
lucee:
image: lucee/lucee:latest
environment:
# Only for first run, override in lucee admin
- LUCEE_ADMIN_PASSWORD=whaddayaknow
ports:
- 8889:8888
volumes:
# web site and config (databases) must naturally be persisted
- ./www:/var/www
- ./config/lucee:/opt/lucee/server/lucee-server
extra_hosts: # docker-compose > 1.25
- host.docker.internal:host-gateway
# Run as docker compose up -d
# So without a dash (NOT: docker-compose), to get the new built in version
#
# Connect to host MySQL
# =====================
# jdbc:mysql://host.docker.internal:3306/somedatabaseisntit
#
# Make sure to set the host MySQL bind-address on /etc/mysqld/mysqld.conf
# bind-address = 0.0.0.0
#
# Create a user 'dbuser' with hosts matching 172.16.0.0/12 to match all docker containers
#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment