44 lines
1.4 KiB
YAML
44 lines
1.4 KiB
YAML
|
|
services:
|
||
|
|
motores-backend:
|
||
|
|
build:
|
||
|
|
context: .
|
||
|
|
dockerfile: Backend/Dockerfile.API
|
||
|
|
container_name: motores-backend
|
||
|
|
restart: always
|
||
|
|
# Eliminamos ports para que NO sea accesible desde afuera, solo por motores-frontend
|
||
|
|
env_file:
|
||
|
|
- Backend/MotoresArgentinosV2.API/.env
|
||
|
|
environment:
|
||
|
|
- ASPNETCORE_ENVIRONMENT=Production
|
||
|
|
- ASPNETCORE_HTTP_PORTS=8080
|
||
|
|
# Soportamos ambos: el dominio final y la IP de pruebas para CORS
|
||
|
|
- AppSettings__FrontendUrl=https://www.motoresargentinos.com,http://192.168.5.129:8086,http://localhost:5173
|
||
|
|
# Para links generados (pagos/confirmaciones), usamos la IP por ahora si vas a probar sin dominio
|
||
|
|
- AppSettings__BaseUrl=http://192.168.5.129:8086/api
|
||
|
|
networks:
|
||
|
|
- motores-network
|
||
|
|
volumes:
|
||
|
|
- /mnt/MotoresImg:/app/wwwroot/uploads
|
||
|
|
|
||
|
|
motores-frontend:
|
||
|
|
build:
|
||
|
|
context: ./Frontend
|
||
|
|
dockerfile: Dockerfile
|
||
|
|
args:
|
||
|
|
# Al usar Nginx como proxy, podemos usar rutas relativas desde el navegador
|
||
|
|
- VITE_API_BASE_URL=/api
|
||
|
|
- VITE_STATIC_BASE_URL=
|
||
|
|
- VITE_MP_PUBLIC_KEY=TEST-2c7996fc-da9a-4e40-b693-a5ab386ad88e
|
||
|
|
container_name: motores-frontend
|
||
|
|
restart: always
|
||
|
|
ports:
|
||
|
|
- "8086:80" # Puerto libre detectado en el análisis de Portainer
|
||
|
|
depends_on:
|
||
|
|
- motores-backend
|
||
|
|
networks:
|
||
|
|
- motores-network
|
||
|
|
|
||
|
|
networks:
|
||
|
|
motores-network:
|
||
|
|
driver: bridge
|