49 lines
1.3 KiB
YAML
49 lines
1.3 KiB
YAML
version: "3.6"
|
|
##
|
|
#to use this separately will require pinpoint-flink-job-{version}.jar built
|
|
#from pinpoint-flink module with correct properties under hbase.properties, pinpoint-flink.properties
|
|
#sample configs used to build pinpoint-flink/build/pinpoint-flink-job-{version}.jar is under build folder
|
|
##
|
|
services:
|
|
##flink
|
|
jobmanager:
|
|
build: Dockerfile
|
|
container_name: "${PINPOINT_FLINK_NAME}-jobmanager"
|
|
image: ${PINPOINT_FLINK_NAME}-flink:dev
|
|
expose:
|
|
- "6123"
|
|
ports:
|
|
- "${FLINK_WEB_PORT:-8081}:8081"
|
|
command: standalone-job -p 1 pinpoint-flink-job.jar -spring.profiles.active release
|
|
environment:
|
|
- JOB_MANAGER_RPC_ADDRESS=jobmanager
|
|
- PINPOINT_ZOOKEEPER_ADDRESS=${PINPOINT_ZOOKEEPER_ADDRESS}
|
|
networks:
|
|
- pinpoint
|
|
|
|
taskmanager:
|
|
build: Dockerfile
|
|
container_name: "${PINPOINT_FLINK_NAME}-taskmanager"
|
|
image: ${PINPOINT_FLINK_NAME}-flink:dev
|
|
expose:
|
|
- "6121"
|
|
- "6122"
|
|
- "19994"
|
|
ports:
|
|
- "6121:6121"
|
|
- "6122:6122"
|
|
- "19994:19994"
|
|
depends_on:
|
|
- jobmanager
|
|
command: taskmanager
|
|
links:
|
|
- "jobmanager:jobmanager"
|
|
environment:
|
|
- JOB_MANAGER_RPC_ADDRESS=jobmanager
|
|
networks:
|
|
- pinpoint
|
|
|
|
networks:
|
|
pinpoint:
|
|
driver: bridge
|