Created
May 28, 2025 15:02
-
-
Save trilobiet/862e74cee22930a31151343261ff2880 to your computer and use it in GitHub Desktop.
Lucee Docker Compose
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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