diff --git a/automation/.env.example b/automation/.env.example index c44f452..ccd1baa 100644 --- a/automation/.env.example +++ b/automation/.env.example @@ -1 +1,5 @@ GOTIFY_PASSWORD=CHANGE_ME +TZ=America/Chicago +N8N_HOST=n8n.paccoco.com +N8N_DB_PASS=CHANGE_ME +N8N_ENCRYPTION_KEY=CHANGE_ME diff --git a/automation/docker-compose.yaml b/automation/docker-compose.yaml index 202e205..ef329d8 100644 --- a/automation/docker-compose.yaml +++ b/automation/docker-compose.yaml @@ -1,3 +1,5 @@ +name: automation + services: gotify: image: gotify/server:latest @@ -13,6 +15,37 @@ services: - GOTIFY_DEFAULTUSER_ISADMIN=true ports: - 8443:80 + + n8n: + image: n8nio/n8n:latest + container_name: n8n + restart: unless-stopped + ports: + - "5678:5678" + environment: + TZ: ${TZ} + N8N_HOST: ${N8N_HOST} + N8N_PORT: 5678 + N8N_PROTOCOL: https + WEBHOOK_URL: https://${N8N_HOST}/ + N8N_ENCRYPTION_KEY: ${N8N_ENCRYPTION_KEY} + DB_TYPE: postgresdb + DB_POSTGRESDB_HOST: shared-postgres + DB_POSTGRESDB_PORT: 5432 + DB_POSTGRESDB_DATABASE: n8n + DB_POSTGRESDB_USER: n8n + DB_POSTGRESDB_PASSWORD: ${N8N_DB_PASS} + N8N_EMAIL_MODE: smtp + EXECUTIONS_DATA_PRUNE: "true" + EXECUTIONS_DATA_MAX_AGE: 336 + volumes: + - /mnt/tank/docker/appdata/n8n:/home/node/.n8n + networks: + - pangolin + - ix-databases_shared-databases + networks: pangolin: external: true + ix-databases_shared-databases: + external: true