feat: use local volumes

This commit is contained in:
ManUtopiK 2022-10-29 20:39:45 +02:00
parent be783f6252
commit b6b64cf0c8
5 changed files with 7 additions and 10 deletions

4
.gitignore vendored
View File

@ -3,4 +3,6 @@
.env.development.local .env.development.local
.env.test.local .env.test.local
.env.production.local .env.production.local
.env.local .env.local
volumes

View File

@ -25,8 +25,8 @@ x-shared: &shared
- postgres - postgres
- redis - redis
volumes: volumes:
- n8n_storage:/home/node/ - ./volumes/n8n:/home/node/
- n8n_storage:/files - ./volumes/n8n:/files
depends_on: depends_on:
redis: redis:
condition: service_healthy condition: service_healthy

View File

@ -15,7 +15,7 @@ services:
- UMAMI_DB - UMAMI_DB
- LISTMONK_DB - LISTMONK_DB
volumes: volumes:
- postgres_storage:/var/lib/postgresql/data - ./volumes/postgres:/var/lib/postgresql/data
- ./init-data.sh:/docker-entrypoint-initdb.d/init-data.sh - ./init-data.sh:/docker-entrypoint-initdb.d/init-data.sh
healthcheck: healthcheck:
test: test:

View File

@ -3,7 +3,7 @@ services:
image: redis:6-alpine image: redis:6-alpine
restart: always restart: always
volumes: volumes:
- redis_storage:/data - ./volumes/redis:/data
healthcheck: healthcheck:
test: ['CMD', 'redis-cli', 'ping'] test: ['CMD', 'redis-cli', 'ping']
interval: 5s interval: 5s

View File

@ -41,8 +41,3 @@ services:
extends: extends:
file: composes/listmonk/listmonk.yml file: composes/listmonk/listmonk.yml
service: listmonk service: listmonk
volumes:
postgres_storage:
redis_storage:
n8n_storage: