Image error solve update

This commit is contained in:
2025-10-10 18:28:19 +05:30
parent 90e4c719fb
commit c7bf66814f

View File

@ -13,9 +13,16 @@ services:
MYSQL_USER: support_portal_user
MYSQL_PASSWORD: support_portal_password
MYSQL_DATABASE: support-portal
SPRING_PROFILES_ACTIVE: production # ✅ enable production profile
APP_BASE_URL: https://cmcbackend.rootxwire.com # ✅ ensure HTTPS base URL
# ✅ 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
volumes:
# Persist uploaded images and files
- blog-uploads:/app/uploads
networks:
- angular-spring
@ -26,12 +33,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
@ -56,8 +63,8 @@ services:
volumes:
db-data: {}
blog-uploads: {} # Add volume for blog uploads
blog-uploads: {}
networks:
angular-spring: {}
spring-mysql: {}
spring-mysql: {}