This is an automated email from the ASF dual-hosted git repository.
jiadongb pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/texera.git
The following commit(s) were added to refs/heads/main by this push:
new 04105b8249 feat: improve `file-service` Docker Compose file (#3834)
04105b8249 is described below
commit 04105b824911d6a7bb591ad674fc3ff34d45d516
Author: Andy Zhang <[email protected]>
AuthorDate: Fri Oct 10 20:43:43 2025 +0100
feat: improve `file-service` Docker Compose file (#3834)
This PR changes the following:
- remove `version` attribute
- update container names to avoid conflicts
- set default named volumes for data persistence
resolves #3816
---------
Co-authored-by: Jiadong Bai <[email protected]>
---
.../src/main/resources/docker-compose.yml | 26 +++++++++++++---------
1 file changed, 15 insertions(+), 11 deletions(-)
diff --git a/core/file-service/src/main/resources/docker-compose.yml
b/core/file-service/src/main/resources/docker-compose.yml
index fbef6cc3b5..0270275725 100644
--- a/core/file-service/src/main/resources/docker-compose.yml
+++ b/core/file-service/src/main/resources/docker-compose.yml
@@ -15,12 +15,11 @@
# specific language governing permissions and limitations
# under the License.
-version: "3.5"
name: texera-lakefs
services:
minio:
image: minio/minio:RELEASE.2025-02-28T09-55-16Z
- container_name: minio
+ container_name: texera-lakefs-minio
ports:
- "9000:9000"
- "9001:9001"
@@ -28,13 +27,13 @@ services:
- MINIO_ROOT_USER=texera_minio
- MINIO_ROOT_PASSWORD=password
command: server --console-address ":9001" /data
-# Below lines are recommended to uncomment in order to persist your data
even if the container dies
-# volumes:
-# - /path/to/your/local/directory:/data
+ # The lines below are recommended to mount a host path in order to persist
your data even if the container is removed.
+ volumes:
+ - minio_data:/data
postgres:
image: postgres:15
- container_name: postgres
+ container_name: texera-lakefs-postgres
restart: always
environment:
- POSTGRES_DB=texera_lakefs
@@ -45,13 +44,13 @@ services:
interval: 10s
retries: 5
start_period: 5s
-# Ditto
-# volumes:
-# - /path/to/your/local/directory:/var/lib/postgresql/data
+ # Ditto
+ volumes:
+ - postgres_data:/var/lib/postgresql/data
lakefs:
image: treeverse/lakefs:1.51
- container_name: lakefs
+ container_name: texera-lakefs-lakefs
depends_on:
postgres:
condition: service_healthy
@@ -89,4 +88,9 @@ services:
networks:
default:
- name: texera-lakefs
\ No newline at end of file
+ name: texera-lakefs
+
+# Named Docker volumes — uncomment the following lines if you mounted host
paths above.
+volumes:
+ minio_data:
+ postgres_data: