b9137204a0
- FilePreview.vue: add normalizedFileType computed to handle backend returning uppercase HTML/MD/PPTX (fixes preview/download buttons) - FilePreview.vue: bg-gradient-to-r from-orange-500 -> bg-orange-500 (Tailwind v4 gradient + CSS variable = transparent) - ReportCard.vue: bg-gradient-to-r -> bg-orange-600 for selected state - Add .opencode/, node_modules/, dist/ to .gitignore - Initial git setup for publish project
44 lines
896 B
YAML
44 lines
896 B
YAML
services:
|
|
# Backend: Spring Boot JAR
|
|
backend:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
container_name: publish-backend
|
|
restart: unless-stopped
|
|
ports:
|
|
- "37821:8080"
|
|
environment:
|
|
- SPRING_PROFILES_ACTIVE=prod
|
|
- JAVA_OPTS=-Xms256m -Xmx512m
|
|
- UPLOAD_DIR=/app/uploads
|
|
volumes:
|
|
- uploads-data2:/app/uploads
|
|
networks:
|
|
- app-network
|
|
|
|
# Frontend: Python HTTP server with API proxy
|
|
frontend:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile.frontend
|
|
container_name: publish-frontend
|
|
restart: unless-stopped
|
|
ports:
|
|
- "41733:80"
|
|
environment:
|
|
- BACKEND_URL=http://publish-backend:8080
|
|
volumes:
|
|
- uploads-data2:/app/uploads
|
|
networks:
|
|
- app-network
|
|
depends_on:
|
|
- backend
|
|
|
|
networks:
|
|
app-network:
|
|
driver: bridge
|
|
|
|
volumes:
|
|
uploads-data2:
|
|
driver: local |