From 2a82215a6a9147549ccf83b6bb7e3c155d23693d Mon Sep 17 00:00:00 2001 From: acazares Date: Fri, 23 Jan 2026 14:01:03 -0600 Subject: [PATCH] feat(docker): add SITAR API environment variables and configure backend uploads volume --- docker-compose.prod.yml | 8 +++++++- docker-compose.yml | 3 +++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml index f06b8238..4eabf108 100644 --- a/docker-compose.prod.yml +++ b/docker-compose.prod.yml @@ -159,6 +159,9 @@ services: - KEYCLOAK_CLIENT_ID=${KEYCLOAK_CLIENT_ID:-anexo76-backend} - KEYCLOAK_CLIENT_SECRET=${KEYCLOAK_CLIENT_SECRET:-dev-secret} - CORS_ORIGINS=${CORS_ORIGINS:-https://anexo76-dev.aduanasoft.com,http://localhost:3000} + - SITAR_API_URL=${SITAR_API_URL} + - SITAR_API_USER=${SITAR_API_USER} + - SITAR_API_PASSWORD=${SITAR_API_PASSWORD} ports: - "3467:8000" depends_on: @@ -166,7 +169,8 @@ services: condition: service_healthy keycloak: condition: service_healthy - volumes: + volumes: + - backend_uploads:/app/uploads - ./scripts/backend-entrypoint.sh:/entrypoint.sh:ro networks: - backend-net @@ -286,6 +290,8 @@ volumes: driver: local backend_cache: driver: local + backend_uploads: + driver: local networks: backend-net: diff --git a/docker-compose.yml b/docker-compose.yml index 498a6782..041c1bdf 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -188,6 +188,7 @@ services: volumes: - ./backend:/app - backend_cache:/app/__pycache__ + - backend_uploads:/app/uploads - ./scripts/backend-entrypoint.sh:/entrypoint.sh:ro networks: - backend-net @@ -298,6 +299,8 @@ volumes: driver: local backend_cache: driver: local + backend_uploads: + driver: local networks: backend-net: