Boxlang Multisite using Docker and Commandbox
docker-compose.yml
version: '3.4'
services:
bxapp:
image: ortussolutions/commandbox:jdk21
environment:
- BOX_SERVER_APP_CFENGINE=boxlang
- cfengine=boxlang
- BOXLANG_DEBUG=true
- BOXLANG_MODULES=bx-compat-cfml,bx-esapi,bx-mysql
- REWRITES=false
- BOXLANG_HOME=/var/boxlang
- BOXLANG_HEALTH_CHECK=false
- BOX_SERVER_WEB_useProxyForwardedIP=true
ports:
- 80:8080
- 443:443
volumes:
- /var/www/domains/:/var/www/
- /var/www/domains/app:/app
- /etc/letsencrypt/:/etc/letsencrypt/
healthcheck:
test: ["CMD", "curl", "-f", "http://127.0.0.1:8080/"]
interval: 60s
timeout: 30s
retries: 5
deploy:
replicas: 1
update_config:
parallelism: 1
delay: 0s
failure_action: continue
order: start-first
restart_policy:
condition: on-failure
delay: 5s