Setup Docker infrastructure for GoMag vending import system

- Add Flask admin interface with Oracle connection pool
- Create ARTICOLE_TERTI table for SKU mappings
- Configure Docker container with Oracle Instant Client
- Setup project documentation and requirements

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-09-08 22:48:33 +03:00
parent 6a841e3cc0
commit 3e92456c59
9 changed files with 971 additions and 1 deletions

40
docker-compose.yaml Normal file
View File

@@ -0,0 +1,40 @@
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