Add environment configuration and documentation for various services
- Created .env.example files for Kafka, Kibana, KodBox, Kong, Langfuse, Logstash, n8n, Nginx, OceanBase, OpenCoze, RocketMQ, TiDB, and TiKV. - Added README.md and README.zh.md files for OceanBase, RocketMQ, TiDB, and TiKV, detailing usage, configuration, and access instructions. - Implemented docker-compose.yaml files for OceanBase, RocketMQ, TiDB, and TiKV, defining service configurations, health checks, and resource limits. - Included broker.conf for RocketMQ to specify broker settings. - Established a consistent timezone (UTC) across all services. - Provided optional port overrides in .env.example files for flexibility in deployment.
This commit is contained in:
78
src/flink/docker-compose.yaml
Normal file
78
src/flink/docker-compose.yaml
Normal file
@@ -0,0 +1,78 @@
|
||||
x-default: &default
|
||||
restart: unless-stopped
|
||||
logging:
|
||||
driver: json-file
|
||||
options:
|
||||
max-size: 100m
|
||||
max-file: "3"
|
||||
|
||||
services:
|
||||
jobmanager:
|
||||
<<: *default
|
||||
image: flink:${FLINK_VERSION:-1.20.0-scala_2.12-java11}
|
||||
hostname: jobmanager
|
||||
command: jobmanager
|
||||
environment:
|
||||
TZ: ${TZ:-UTC}
|
||||
FLINK_PROPERTIES: |
|
||||
jobmanager.rpc.address: jobmanager
|
||||
jobmanager.memory.process.size: 1600m
|
||||
taskmanager.memory.process.size: 1600m
|
||||
taskmanager.numberOfTaskSlots: 2
|
||||
volumes:
|
||||
- flink_data:/opt/flink/data
|
||||
# Custom Flink jobs
|
||||
# - ./jobs:/opt/flink/jobs
|
||||
ports:
|
||||
- "${FLINK_JOBMANAGER_RPC_PORT_OVERRIDE:-6123}:6123"
|
||||
- "${FLINK_JOBMANAGER_UI_PORT_OVERRIDE:-8081}:8081"
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: '2.0'
|
||||
memory: 2G
|
||||
reservations:
|
||||
cpus: '0.5'
|
||||
memory: 1G
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "wget --no-verbose --tries=1 --spider http://localhost:8081 || exit 1"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 30s
|
||||
|
||||
taskmanager:
|
||||
<<: *default
|
||||
image: flink:${FLINK_VERSION:-1.20.0-scala_2.12-java11}
|
||||
command: taskmanager
|
||||
environment:
|
||||
TZ: ${TZ:-UTC}
|
||||
FLINK_PROPERTIES: |
|
||||
jobmanager.rpc.address: jobmanager
|
||||
jobmanager.memory.process.size: 1600m
|
||||
taskmanager.memory.process.size: 1600m
|
||||
taskmanager.numberOfTaskSlots: 2
|
||||
volumes:
|
||||
- flink_data:/opt/flink/data
|
||||
# Custom Flink jobs
|
||||
# - ./jobs:/opt/flink/jobs
|
||||
depends_on:
|
||||
jobmanager:
|
||||
condition: service_healthy
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: '2.0'
|
||||
memory: 2G
|
||||
reservations:
|
||||
cpus: '0.5'
|
||||
memory: 1G
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "ps aux | grep -v grep | grep -q taskmanager || exit 1"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 30s
|
||||
|
||||
volumes:
|
||||
flink_data:
|
||||
Reference in New Issue
Block a user