-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Expand file tree
/
Copy pathdocker-compose.build.yml
More file actions
24 lines (23 loc) · 999 Bytes
/
Copy pathdocker-compose.build.yml
File metadata and controls
24 lines (23 loc) · 999 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Override file for local frontend builds.
# Usage:
# git clone <QuantDinger-Vue> ./QuantDinger-Vue
# docker compose -f docker-compose.yml -f docker-compose.build.yml up --build
#
# Without this override, the main compose file only pulls the prebuilt
# frontend image from GHCR and never touches ./QuantDinger-Vue/.
#
# Tip: set `COMPOSE_FILE=docker-compose.yml:docker-compose.build.yml` in your
# root `.env` to make `docker compose up --build` pick this up automatically.
services:
frontend:
# Disable the `pull_policy: always` inherited from docker-compose.yml.
# Without this, a plain `docker compose up` (or `pull frontend`) would
# silently overwrite the locally-built image with the GHCR `:latest`,
# discarding the user's local Vue edits.
pull_policy: build
build:
context: ${FRONTEND_SRC_PATH:-./QuantDinger-Vue}
dockerfile: Dockerfile
args:
APP_VERSION: ${APP_VERSION:-}
GIT_TAG: ${GIT_TAG:-${FRONTEND_TAG:-${IMAGE_TAG:-}}}