From b6b64cf0c83d584ae374a9f78ba043e470cd4239 Mon Sep 17 00:00:00 2001 From: ManUtopiK Date: Sat, 29 Oct 2022 20:39:45 +0200 Subject: [PATCH] feat: use local volumes --- .gitignore | 4 +++- composes/n8n/n8n.yml | 4 ++-- composes/postgres/postgres.yml | 2 +- composes/redis/redis.yml | 2 +- docker-compose.yml | 5 ----- 5 files changed, 7 insertions(+), 10 deletions(-) diff --git a/.gitignore b/.gitignore index 4a03c56..7290822 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,6 @@ .env.development.local .env.test.local .env.production.local -.env.local \ No newline at end of file +.env.local + +volumes \ No newline at end of file diff --git a/composes/n8n/n8n.yml b/composes/n8n/n8n.yml index dcc9b67..7dddf72 100644 --- a/composes/n8n/n8n.yml +++ b/composes/n8n/n8n.yml @@ -25,8 +25,8 @@ x-shared: &shared - postgres - redis volumes: - - n8n_storage:/home/node/ - - n8n_storage:/files + - ./volumes/n8n:/home/node/ + - ./volumes/n8n:/files depends_on: redis: condition: service_healthy diff --git a/composes/postgres/postgres.yml b/composes/postgres/postgres.yml index aec261f..8a36ad8 100644 --- a/composes/postgres/postgres.yml +++ b/composes/postgres/postgres.yml @@ -15,7 +15,7 @@ services: - UMAMI_DB - LISTMONK_DB volumes: - - postgres_storage:/var/lib/postgresql/data + - ./volumes/postgres:/var/lib/postgresql/data - ./init-data.sh:/docker-entrypoint-initdb.d/init-data.sh healthcheck: test: diff --git a/composes/redis/redis.yml b/composes/redis/redis.yml index d18114f..3b8fdd6 100644 --- a/composes/redis/redis.yml +++ b/composes/redis/redis.yml @@ -3,7 +3,7 @@ services: image: redis:6-alpine restart: always volumes: - - redis_storage:/data + - ./volumes/redis:/data healthcheck: test: ['CMD', 'redis-cli', 'ping'] interval: 5s diff --git a/docker-compose.yml b/docker-compose.yml index 56c764d..00fe2f6 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -41,8 +41,3 @@ services: extends: file: composes/listmonk/listmonk.yml service: listmonk - -volumes: - postgres_storage: - redis_storage: - n8n_storage: