feat(docker): add SITAR API environment variables and configure backend uploads volume

This commit is contained in:
2026-01-23 14:01:03 -06:00
parent e2b9ee3f7b
commit 2a82215a6a
2 changed files with 10 additions and 1 deletions

View File

@@ -159,6 +159,9 @@ services:
- KEYCLOAK_CLIENT_ID=${KEYCLOAK_CLIENT_ID:-anexo76-backend} - KEYCLOAK_CLIENT_ID=${KEYCLOAK_CLIENT_ID:-anexo76-backend}
- KEYCLOAK_CLIENT_SECRET=${KEYCLOAK_CLIENT_SECRET:-dev-secret} - KEYCLOAK_CLIENT_SECRET=${KEYCLOAK_CLIENT_SECRET:-dev-secret}
- CORS_ORIGINS=${CORS_ORIGINS:-https://anexo76-dev.aduanasoft.com,http://localhost:3000} - 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: ports:
- "3467:8000" - "3467:8000"
depends_on: depends_on:
@@ -166,7 +169,8 @@ services:
condition: service_healthy condition: service_healthy
keycloak: keycloak:
condition: service_healthy condition: service_healthy
volumes: volumes:
- backend_uploads:/app/uploads
- ./scripts/backend-entrypoint.sh:/entrypoint.sh:ro - ./scripts/backend-entrypoint.sh:/entrypoint.sh:ro
networks: networks:
- backend-net - backend-net
@@ -286,6 +290,8 @@ volumes:
driver: local driver: local
backend_cache: backend_cache:
driver: local driver: local
backend_uploads:
driver: local
networks: networks:
backend-net: backend-net:

View File

@@ -188,6 +188,7 @@ services:
volumes: volumes:
- ./backend:/app - ./backend:/app
- backend_cache:/app/__pycache__ - backend_cache:/app/__pycache__
- backend_uploads:/app/uploads
- ./scripts/backend-entrypoint.sh:/entrypoint.sh:ro - ./scripts/backend-entrypoint.sh:/entrypoint.sh:ro
networks: networks:
- backend-net - backend-net
@@ -298,6 +299,8 @@ volumes:
driver: local driver: local
backend_cache: backend_cache:
driver: local driver: local
backend_uploads:
driver: local
networks: networks:
backend-net: backend-net: