Add build: fallback alongside image: for initial bootstrap
Some checks failed
Build and Deploy UMBRA / build-and-deploy (push) Has been cancelled
Some checks failed
Build and Deploy UMBRA / build-and-deploy (push) Has been cancelled
When both image: and build: are present, docker compose up --build builds locally and tags with the image name. This allows the stack to start before registry images exist, solving the bootstrap problem. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
4f8b83ba87
commit
55891eb7b5
@ -20,6 +20,7 @@ services:
|
|||||||
|
|
||||||
backend:
|
backend:
|
||||||
image: git.sentinelforest.xyz/rohskiddo/umbra-backend:main-latest
|
image: git.sentinelforest.xyz/rohskiddo/umbra-backend:main-latest
|
||||||
|
build: ./backend
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
env_file: .env
|
env_file: .env
|
||||||
depends_on:
|
depends_on:
|
||||||
@ -42,6 +43,7 @@ services:
|
|||||||
|
|
||||||
frontend:
|
frontend:
|
||||||
image: git.sentinelforest.xyz/rohskiddo/umbra-frontend:main-latest
|
image: git.sentinelforest.xyz/rohskiddo/umbra-frontend:main-latest
|
||||||
|
build: ./frontend
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ports:
|
ports:
|
||||||
- "80:8080"
|
- "80:8080"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user