[FLINK-32099] Create flink_data volume for operations playground
diff --git a/operations-playground/README.md b/operations-playground/README.md
index e9a9405..19545f0 100644
--- a/operations-playground/README.md
+++ b/operations-playground/README.md
@@ -26,15 +26,6 @@
docker-compose build
```
-### Preparing the Checkpoint and Savepoint Directories
-
-Create the checkpoint and savepoint directories on the Docker host machine (these volumes are mounted by the jobmanager and taskmanager, as specified in docker-compose.yaml):
-
-```bash
-mkdir -p /tmp/flink-checkpoints-directory
-mkdir -p /tmp/flink-savepoints-directory
-```
-
### Starting the Playground
Once you built the Docker image, run the following command to start the playground
diff --git a/operations-playground/docker-compose.yaml b/operations-playground/docker-compose.yaml
index 277e1a8..5478271 100644
--- a/operations-playground/docker-compose.yaml
+++ b/operations-playground/docker-compose.yaml
@@ -27,6 +27,7 @@
- kafka
volumes:
- ./conf:/opt/flink/conf
+ - flink_data:/tmp/
environment:
- JOB_MANAGER_RPC_ADDRESS=jobmanager
clickevent-generator:
@@ -41,8 +42,7 @@
- 8081:8081
volumes:
- ./conf:/opt/flink/conf
- - /tmp/flink-checkpoints-directory:/tmp/flink-checkpoints-directory
- - /tmp/flink-savepoints-directory:/tmp/flink-savepoints-directory
+ - flink_data:/tmp/
environment:
- JOB_MANAGER_RPC_ADDRESS=jobmanager
taskmanager:
@@ -52,8 +52,7 @@
command: "taskmanager.sh start-foreground"
volumes:
- ./conf:/opt/flink/conf
- - /tmp/flink-checkpoints-directory:/tmp/flink-checkpoints-directory
- - /tmp/flink-savepoints-directory:/tmp/flink-savepoints-directory
+ - flink_data:/tmp/
environment:
- JOB_MANAGER_RPC_ADDRESS=jobmanager
zookeeper:
@@ -70,3 +69,5 @@
ports:
- 9092:9092
- 9094:9094
+volumes:
+ flink_data: