Files
docker-compose-collection/composes-files/n8m.yml
Mickael PAPAMICA Asseline f03076cbae fix data location
2024-06-07 08:48:31 +02:00

48 lines
1.4 KiB
YAML

# Maintainer: Mickael "PAPAMICA" Asseline
# Update: 2024-06-07
#& type: 3
#& title: n8n
#& description: Automatisation (Zapier alternative)
#& note: Website: <a href='https://github.com/n8n-io/n8n' target='_blank' rel='noopener'>Github.com</a></br>Port to open:5678
#& categories: SelfHosted, PAPAMICA
#& platform: linux
#& logo: https://avatars.githubusercontent.com/u/45487711?s=200&v=4
#% SERVICE: Name of the service (No spaces or points) [n8n]
#% DATA_LOCATION: Data localization (Example: /apps/service) [/_data/apps]
#% URL: Service URL (Example: service.papamica.fr or service.com)
#% NETWORK: Your Traefik network (Example: proxy) [proxy]
# Work with Portainer
version: "2"
services:
n8n:
image: docker.n8n.io/n8nio/n8n
restart: always
container_name: $SERVICE
volumes:
- $DATA_LOCATION/$SERVICE:/home/node/.n8n
ports:
- "5678:5678"
environment:
- N8N_HOST=${URL}
- N8N_PORT=5678
- N8N_PROTOCOL=https
- NODE_ENV=production
- WEBHOOK_URL=https://${URL}/
- GENERIC_TIMEZONE=Europe/Paris
labels:
- "autoupdate=monitor" # https://github.com/PAPAMICA/container-updater
- traefik.enable=true
- traefik.http.routers.$SERVICE.rule=Host(`$URL`)
- traefik.http.routers.$SERVICE.entryPoints=http
- traefik.$SERVICE.port=5678
- "traefik.docker.network=$NETWORK"
networks:
- default
networks:
default:
external: true
name: $NETWORK