version: '3.8' services: # Main Flask Application for Web Admin Interface gomag_admin: build: context: ./api dockerfile: Dockerfile container_name: gomag-admin ports: - "5003:5000" # Unique port for this project volumes: - ./api:/app - ./logs:/app/logs # Shared logging directory environment: - PYTHONUNBUFFERED=1 - FLASK_ENV=development - FLASK_DEBUG=1 # Oracle connection settings - same as ROA server - ORACLE_USER=CONTAFIN_ORACLE - ORACLE_PASSWORD=ROMFASTSOFT - ORACLE_DSN=ROA_ROMFAST - TNS_ADMIN=/app - INSTANTCLIENTPATH=/opt/oracle/instantclient_21_1 restart: unless-stopped healthcheck: test: ["CMD", "curl", "-f", "http://localhost:5000/health"] interval: 30s timeout: 10s retries: 3 # Shared network for inter-container communication networks: default: driver: bridge # Persistent volumes volumes: logs_data: driver: local