dev #4
2 changed files with 4 additions and 5 deletions
|
@ -1,11 +1,9 @@
|
|||
---
|
||||
- name: Ensure data directories exist
|
||||
ansible.builtin.file:
|
||||
path: "{{ container_base_dir }}/data/{{ item }}"
|
||||
path: "{{ container_base_dir }}/data"
|
||||
state: directory
|
||||
mode: '0755'
|
||||
loop:
|
||||
- "db"
|
||||
become: false
|
||||
|
||||
- name: Deploy Docker Compose and .env files
|
||||
|
|
|
@ -13,7 +13,7 @@ services:
|
|||
- POSTGRES_NON_ROOT_USER=${N8N_POSTGRES_NON_ROOT_USER}
|
||||
- POSTGRES_NON_ROOT_PASSWORD=${N8N_POSTGRES_NON_ROOT_PASSWORD}
|
||||
volumes:
|
||||
- ./data/db:/var/lib/postgresql/data
|
||||
- db:/var/lib/postgresql/data
|
||||
- ./data/init-data.sh:/docker-entrypoint-initdb.d/init-data.sh
|
||||
healthcheck:
|
||||
test: ['CMD-SHELL', 'pg_isready -h localhost -U ${N8N_POSTGRES_USER} -d ${N8N_POSTGRES_DB}']
|
||||
|
@ -72,4 +72,5 @@ networks:
|
|||
driver: bridge
|
||||
|
||||
volumes:
|
||||
data:
|
||||
data:
|
||||
db:
|
Loading…
Add table
Reference in a new issue