2026-04-27 18:16:47 -04:00
|
|
|
version: '3.8'
|
feat(CUB-64): Docker runtime setup for development & deployment
- Backend Dockerfile: added curl install for health check (not in aspnet base image)
- Frontend Dockerfile: multi-stage Angular build with nginx serving
- Frontend nginx.conf: SPA routing, API proxy, SignalR WebSocket support, health endpoint
- Frontend .dockerignore: excludes node_modules, dist, .angular, etc.
- docker-compose.dev.yml: added PostgreSQL service, fixed frontend context path,
renamed web service from control-center-web to extrudex-web, added DB env vars,
proper service dependencies with health checks
- deploy.sh: updated service list to include PostgreSQL port
2026-04-27 08:33:18 +00:00
|
|
|
|
2026-04-27 18:16:47 -04:00
|
|
|
services:
|
2026-04-26 17:28:06 +00:00
|
|
|
extrudex-api:
|
|
|
|
|
build:
|
|
|
|
|
context: ./backend
|
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
|
container_name: extrudex-api
|
|
|
|
|
ports:
|
|
|
|
|
- "5080:8080"
|
|
|
|
|
environment:
|
|
|
|
|
- ASPNETCORE_ENVIRONMENT=Development
|
|
|
|
|
- ASPNETCORE_URLS=http://+:8080
|
|
|
|
|
restart: unless-stopped
|
|
|
|
|
healthcheck:
|
|
|
|
|
test: ["CMD", "curl", "-f", "http://localhost:8080/health"]
|
|
|
|
|
interval: 30s
|
|
|
|
|
timeout: 10s
|
|
|
|
|
retries: 3
|
|
|
|
|
start_period: 40s
|
|
|
|
|
networks:
|
|
|
|
|
- extrudex-network
|
|
|
|
|
|
2026-04-27 18:16:47 -04:00
|
|
|
control-center-web:
|
2026-04-26 17:28:06 +00:00
|
|
|
build:
|
2026-04-27 18:16:47 -04:00
|
|
|
context: ../Control-Center/frontend
|
2026-04-26 17:28:06 +00:00
|
|
|
dockerfile: Dockerfile
|
2026-04-27 18:16:47 -04:00
|
|
|
container_name: control-center-web
|
2026-04-26 17:28:06 +00:00
|
|
|
ports:
|
|
|
|
|
- "5081:80"
|
|
|
|
|
depends_on:
|
|
|
|
|
extrudex-api:
|
|
|
|
|
condition: service_healthy
|
|
|
|
|
restart: unless-stopped
|
|
|
|
|
networks:
|
|
|
|
|
- extrudex-network
|
|
|
|
|
|
|
|
|
|
networks:
|
|
|
|
|
extrudex-network:
|
|
|
|
|
driver: bridge
|