Image error solve update

This commit is contained in:
2025-10-10 19:11:20 +05:30
parent b5df742a80
commit 5a88ba6993

View File

@ -13,16 +13,9 @@ services:
MYSQL_USER: support_portal_user
MYSQL_PASSWORD: support_portal_password
MYSQL_DATABASE: support-portal
# ✅ Activate production profile and enforce HTTPS base URL
SPRING_PROFILES_ACTIVE: production
APP_BASE_URL: https://cmcbackend.rootxwire.com
# ✅ Optional: ensures Spring detects HTTPS correctly behind reverse proxy
SERVER_FORWARD_HEADERS_STRATEGY: native
SPRING_PROFILES_ACTIVE: production # ✅ enable production profile
APP_BASE_URL: https://cmcbackend.rootxwire.com # ✅ ensure HTTPS base URL
volumes:
# Persist uploaded images and files
- blog-uploads:/app/uploads
networks:
- angular-spring
@ -33,12 +26,12 @@ services:
db:
image: mysql:8.0.19
restart: always
environment:
MYSQL_USER: support_portal_user
MYSQL_PASSWORD: support_portal_password
MYSQL_DATABASE: support-portal
MYSQL_ROOT_PASSWORD: root_password
restart: always
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "127.0.0.1", "--silent"]
interval: 3s
@ -63,8 +56,8 @@ services:
volumes:
db-data: {}
blog-uploads: {}
blog-uploads: {} # Add volume for blog uploads
networks:
angular-spring: {}
spring-mysql: {}
spring-mysql: {}