Files
ranking/docker-compose.yml
Frederico Castro d1379b4f5c docs: Adiciona resumo completo do projeto de ranking
Documenta:
- Arquitetura implementada (4 componentes)
- Estrutura de código (Clean Architecture)
- Problema atual (Componente B = 0 por rede)
- Soluções propostas (script standalone)
- Comandos úteis e validações
- Status: 95% completo, falta resolver acesso rede CAPES
2025-12-10 05:28:34 -03:00

79 lines
1.8 KiB
YAML

services:
backend:
container_name: ranking_backend
build:
context: ./backend
dockerfile: Dockerfile
ports:
- "8000:8000"
env_file:
- ./backend/.env
environment:
- API_HOST=0.0.0.0
- API_PORT=8000
- API_RELOAD=true
- CORS_ORIGINS=http://localhost:5173,http://frontend:5173
- LOG_LEVEL=INFO
volumes:
- ./backend/src:/app/src
- /etc/localtime:/etc/localtime:ro
dns:
- 172.19.100.16
- 172.19.100.17
- 8.8.8.8
depends_on:
oracle18c:
condition: service_healthy
networks:
- shared_network
restart: unless-stopped
frontend:
container_name: ranking_frontend
build:
context: ./frontend
dockerfile: Dockerfile
depends_on:
- backend
ports:
- "5173:5173"
volumes:
- ./frontend/src:/app/src
- ./frontend/index.html:/app/index.html
- ./frontend/vite.config.js:/app/vite.config.js
- /etc/localtime:/etc/localtime:ro
links:
- backend
networks:
- shared_network
restart: unless-stopped
oracle18c:
container_name: mqapilc_oracle18c
image: gvenzl/oracle-xe:18-slim
environment:
- ORACLE_PASSWORD=local123
- ORACLE_CHARACTERSET=AL32UTF8
- APP_USER=locasl123
- APP_USER_PASSWORD=local123
- TZ=America/Sao_Paulo
ports:
- "1521:1521"
- "5500:5500"
volumes:
- oracle_data:/opt/oracle/oradata
healthcheck:
test: ["CMD", "bash", "-c", "echo 'SELECT 1 FROM DUAL;' | sqlplus -s SYSTEM/\"$${ORACLE_PASSWORD}\"@localhost:1521/XEPDB1"]
interval: 30s
timeout: 10s
retries: 20
networks:
- shared_network
networks:
shared_network:
external: true
volumes:
oracle_data:
driver: local