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:
40
docker-compose.yaml
Normal file
40
docker-compose.yaml
Normal 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
|
||||
Reference in New Issue
Block a user