Add playbooks/templates/n8n-compose.yml.j2
This commit is contained in:
parent
e0666ea904
commit
dab2403aa5
1 changed files with 35 additions and 0 deletions
35
playbooks/templates/n8n-compose.yml.j2
Normal file
35
playbooks/templates/n8n-compose.yml.j2
Normal file
|
|
@ -0,0 +1,35 @@
|
||||||
|
services:
|
||||||
|
postgres:
|
||||||
|
image: postgres:16
|
||||||
|
container_name: {{ stack_name }}-postgres
|
||||||
|
restart: unless-stopped
|
||||||
|
env_file:
|
||||||
|
- .env
|
||||||
|
environment:
|
||||||
|
POSTGRES_DB: ${DB_POSTGRESDB_DATABASE}
|
||||||
|
POSTGRES_USER: ${DB_POSTGRESDB_USER}
|
||||||
|
POSTGRES_PASSWORD: ${DB_POSTGRESDB_PASSWORD}
|
||||||
|
volumes:
|
||||||
|
- ./postgres:/var/lib/postgresql/data
|
||||||
|
networks:
|
||||||
|
- internal
|
||||||
|
|
||||||
|
n8n:
|
||||||
|
image: docker.n8n.io/n8nio/n8n:latest
|
||||||
|
container_name: {{ stack_name }}-n8n
|
||||||
|
restart: unless-stopped
|
||||||
|
env_file:
|
||||||
|
- .env
|
||||||
|
depends_on:
|
||||||
|
- postgres
|
||||||
|
volumes:
|
||||||
|
- ./n8n_data:/home/node/.n8n
|
||||||
|
networks:
|
||||||
|
- internal
|
||||||
|
- pangolin
|
||||||
|
|
||||||
|
networks:
|
||||||
|
internal:
|
||||||
|
driver: bridge
|
||||||
|
pangolin:
|
||||||
|
external: true
|
||||||
Loading…
Add table
Add a link
Reference in a new issue