Files
Inventory-Manager-CC/web/docker-compose.yml
MayaTheShy c3344288a8 fix(docker): resolve @cc-platform/server file: dep in container build
Use additional_contexts to copy platform server package into the Docker
build context. Rewrites the file: dependency path and removes the
lockfile so npm install can resolve the local package correctly.
2026-03-28 22:35:39 -04:00

36 lines
668 B
YAML

services:
server:
build:
context: ./server
additional_contexts:
platform-server: ../../cc-platform-core/server
networks:
- inventory-network
volumes:
- server-data:/data
environment:
- API_KEY=${API_KEY:-}
- TURTLE_SERVER_URL=${TURTLE_SERVER_URL:-}
restart: unless-stopped
client:
build:
context: ./client
args:
VITE_API_KEY: ${API_KEY:-}
ports:
- "80:80"
networks:
- inventory-network
depends_on:
server:
condition: service_healthy
restart: unless-stopped
networks:
inventory-network:
driver: bridge
volumes:
server-data: