From 9ce2a7ce3f53ba22b4efe77425c2cf5e1c4d6d2f Mon Sep 17 00:00:00 2001 From: Teck Meng Date: Wed, 1 May 2024 20:25:16 +0800 Subject: [PATCH] Add .gitignore files for kestra-data and postgres-data directories --- kestra-data/.gitignore | 2 ++ postgres-data/.gitignore | 2 ++ production.yml | 8 ++------ 3 files changed, 6 insertions(+), 6 deletions(-) create mode 100644 kestra-data/.gitignore create mode 100644 postgres-data/.gitignore diff --git a/kestra-data/.gitignore b/kestra-data/.gitignore new file mode 100644 index 0000000..d6b7ef3 --- /dev/null +++ b/kestra-data/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore diff --git a/postgres-data/.gitignore b/postgres-data/.gitignore new file mode 100644 index 0000000..d6b7ef3 --- /dev/null +++ b/postgres-data/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore diff --git a/production.yml b/production.yml index e7ae16a..27254ba 100644 --- a/production.yml +++ b/production.yml @@ -11,10 +11,6 @@ x-environment: &default-environment volumes: production_traefik: {} portainer_data: {} - postgres-data: - driver: local - kestra-data: - driver: local services: postgres: @@ -31,7 +27,7 @@ services: PUID: 1000 user: "1000:1000" volumes: - - postgres-data:/var/lib/postgresql/data + - ./postgres-data:/var/lib/postgresql/data healthcheck: test: ["CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}"] interval: 30s @@ -73,7 +69,7 @@ services: user: "1000:1000" command: server standalone --worker-thread=128 volumes: - - kestra-data:/app/storage + - ./kestra-data:/app/storage - /var/run/docker.sock:/var/run/docker.sock - /tmp/kestra-wd:/tmp/kestra-wd environment: