Files
gomag-vending/docker-compose.yaml
Marius Mutu 3e92456c59 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>
2025-09-08 22:48:33 +03:00

40 lines
988 B
YAML

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