Files
blt/docker-dev.yml
T
Gregory Ballantine 4e0223052e
ci/woodpecker/push/woodpecker Pipeline was successful
Updated Docker configs to use Air for auto-reloading
2026-07-24 12:01:20 -04:00

33 lines
921 B
YAML

services:
app:
build:
context: .
dockerfile: Dockerfile.dev
command: make watch
ports:
- "2830:2830"
volumes:
- .:/app # Mounts local directory for hot-reloading/live edits
- go-modules:/go/pkg/mod # Caches Go modules on host
# Mount the compiled static assets generated by Grunt
- static-assets:/app/public
environment:
- APP_ENV=development
assets:
build:
context: .
dockerfile: Dockerfile.grunt
# Override CMD to run watch mode during local dev
command: npm run grunt watch
volumes:
# Mount host code so Grunt detects file changes in real time
- .:/var/www/html
# Preserve container node_modules from being overwritten by host
- /var/www/html/node_modules
# Output compiled assets into the shared volume
- static-assets:/var/www/html/public
volumes:
go-modules:
static-assets: