-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
27 lines (26 loc) · 1.09 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
27 lines (26 loc) · 1.09 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
# Development override — mounts source so Astro HMR picks up changes instantly.
#
# Usage:
# docker compose -f docker-compose.yml -f docker-compose.dev.yml up web-gui
#
# On first run (or after adding packages) rebuild the image:
# docker compose -f docker-compose.yml -f docker-compose.dev.yml build web-gui
services:
web-gui:
build:
context: ./app
dockerfile: Dockerfile
# Run as the host user that owns ./mintlayer-data (never root).
# Falls back to the image's unprivileged app user (10001).
user: "${ML_USER_ID:-10001}:${ML_GROUP_ID:-10001}"
ports:
- "${WEB_GUI_BIND:-127.0.0.1}:${WEB_GUI_PORT:-4321}:4321" # loopback by default; opt in via WEB_GUI_BIND
volumes:
# Mount source into container; keep node_modules from the image
- ./app/src:/app/src
- ./app/public:/app/public
- ./app/wasm-wrappers:/app/wasm-wrappers:ro
- ./app/astro.config.mjs:/app/astro.config.mjs
- ./app/tailwind.config.mjs:/app/tailwind.config.mjs
- ./app/postcss.config.mjs:/app/postcss.config.mjs
- ./app/tsconfig.json:/app/tsconfig.json