-
-
Notifications
You must be signed in to change notification settings - Fork 106
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
47 lines (44 loc) · 1.31 KB
/
docker-compose.dev.yml
File metadata and controls
47 lines (44 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Wheels Development Environment
#
# Quick start (no database):
# docker compose -f docker-compose.dev.yml up
#
# With a database profile:
# docker compose -f docker-compose.dev.yml -f docker-compose.db-h2.yml up
# docker compose -f docker-compose.dev.yml -f docker-compose.db-mysql.yml up
# docker compose -f docker-compose.dev.yml -f docker-compose.db-postgres.yml up
#
# The app source is volume-mounted for live editing — code changes
# are picked up automatically without rebuilding or restarting.
networks:
wheels-dev:
driver: bridge
services:
app:
build:
context: .
dockerfile: Dockerfile.dev
volumes:
# Mount the full project for live code editing
- .:/app
# Preserve CommandBox artifacts across restarts (not overwritten by bind mount)
- commandbox_home:/root/.CommandBox
ports:
- "${WHEELS_DEV_PORT:-8080}:8080"
environment:
- WHEELS_ENV=${WHEELS_ENV:-development}
- BOX_SERVER_PROFILE=development
- BOX_SERVER_APP_CFENGINE=${WHEELS_CFENGINE:-lucee@6}
env_file:
- path: .env
required: false
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:8080/ || exit 1"]
interval: 15s
timeout: 5s
retries: 10
start_period: 60s
networks:
- wheels-dev
volumes:
commandbox_home: