-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
75 lines (65 loc) · 1.83 KB
/
docker-compose.yml
File metadata and controls
75 lines (65 loc) · 1.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# ============================================================================
# Corn COBOL-to-Java Compiler - Docker Compose Configuration
# Author: Sekacorn
# Created: 2025-01-10
# License: Commercial - See LICENSE
# ============================================================================
version: '3.8'
services:
corn-compiler:
build:
context: .
dockerfile: Dockerfile
image: corn-cobol-to-java:latest
container_name: corn-compiler
# Environment variables
environment:
- JAVA_OPTS=-Xmx4g -Xms1g
- CORN_HOME=/app
# Volume mounts for input/output
volumes:
- ./samples:/app/input:ro # Input COBOL files (read-only)
- ./output:/app/output # Generated Java files
- ./config:/app/config:ro # Configuration files (read-only)
# Resource limits
deploy:
resources:
limits:
cpus: '4'
memory: 4G
reservations:
cpus: '1'
memory: 1G
# Keep container running for interactive use
stdin_open: true
tty: true
# Example: translate a COBOL file
# Uncomment and modify as needed
# command: translate /app/input/BANK-ACCOUNT.cbl --output /app/output --level 2 --format java
# Optional: Web UI service (future implementation)
# corn-web:
# build:
# context: .
# dockerfile: Dockerfile.web
# image: corn-web:latest
# container_name: corn-web
# ports:
# - "8080:8080"
# depends_on:
# - corn-compiler
# environment:
# - CORN_COMPILER_HOST=corn-compiler
# volumes:
# - ./samples:/app/input:ro
# - ./output:/app/output
# Named volumes for persistent data
volumes:
output:
driver: local
config:
driver: local
# Network configuration
networks:
default:
name: corn-network
driver: bridge