Add n8n
This commit is contained in:
parent
be0c088bae
commit
b9397be052
1 changed files with 50 additions and 0 deletions
50
n8n/docker-compose.yml
Normal file
50
n8n/docker-compose.yml
Normal file
|
@ -0,0 +1,50 @@
|
||||||
|
version: '3'
|
||||||
|
|
||||||
|
services:
|
||||||
|
db:
|
||||||
|
image: postgres:14
|
||||||
|
restart: always
|
||||||
|
container_name: n8n_db
|
||||||
|
networks:
|
||||||
|
- internal
|
||||||
|
volumes:
|
||||||
|
- db:/var/lib/postgresql/data
|
||||||
|
environment:
|
||||||
|
- POSTGRES_PASSWORD=n8n
|
||||||
|
- POSTGRES_DB=n8n
|
||||||
|
- POSTGRES_USER=n8n
|
||||||
|
|
||||||
|
n8n:
|
||||||
|
image: n8nio/n8n
|
||||||
|
restart: always
|
||||||
|
container_name: n8n
|
||||||
|
networks:
|
||||||
|
- internal
|
||||||
|
- proxy
|
||||||
|
volumes:
|
||||||
|
- n8n:/home/node/.n8n
|
||||||
|
labels:
|
||||||
|
- "traefik.enable=true"
|
||||||
|
- "traefik.http.routers.whoami-secure.entrypoints=https"
|
||||||
|
- "traefik.http.routers.whoami-secure.rule=Host(`n8n.mrdev023.fr`)"
|
||||||
|
- "traefik.http.routers.whoami-secure.tls=true"
|
||||||
|
- "traefik.http.routers.whoami-secure.tls.certresolver=sslResolver"
|
||||||
|
# - "traefik.http.routers.whoami-secure.service=whoami"
|
||||||
|
# - "traefik.http.services.whoami.loadbalancer.server.port=9002"
|
||||||
|
- "traefik.docker.network=proxy"
|
||||||
|
environment:
|
||||||
|
- DB_TYPE=postgresdb
|
||||||
|
- DB_POSTGRESDB_PORT=5432
|
||||||
|
- DB_POSTGRESDB_HOST=db
|
||||||
|
- DB_POSTGRESDB_DATABASE=n8n
|
||||||
|
- DB_POSTGRESDB_USER=n8n
|
||||||
|
- DB_POSTGRESDB_PASSWORD=n8n
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
n8n:
|
||||||
|
db:
|
||||||
|
|
||||||
|
networks:
|
||||||
|
internal:
|
||||||
|
proxy:
|
||||||
|
external: true
|
Loading…
Reference in a new issue