Advertisement
Guest User

N8N docker compose patch cycle

a guest
Jan 8th, 2025
12
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.01 KB | None | 0 0
  1. ubuntu@apollo:~$ cd projects/docker/n8n-docker-caddy/
  2. ubuntu@apollo:~/projects/docker/n8n-docker-caddy$ docker compose stop
  3. WARN[0000] The "GENERIC_TIMEZONE" variable is not set. Defaulting to a blank string.
  4. WARN[0000] /home/ubuntu/projects/docker/n8n-docker-caddy/docker-compose.yml: `version` is obsolete
  5. [+] Stopping 2/2
  6. ✔ Container n8n-docker-caddy-caddy-1 Stopped 1.3s
  7. ✔ Container n8n-docker-caddy-n8n-1 Stopped 1.4s
  8. ubuntu@apollo:~/projects/docker/n8n-docker-caddy$ docker compose pull
  9. WARN[0000] The "GENERIC_TIMEZONE" variable is not set. Defaulting to a blank string.
  10. WARN[0000] /home/ubuntu/projects/docker/n8n-docker-caddy/docker-compose.yml: `version` is obsolete
  11. [+] Pulling 7/7
  12. ✔ n8n Pulled 1.1s
  13. ✔ caddy Pulled 5.0s
  14. ✔ 66a3d608f3fa Pull complete 1.5s
  15. ✔ a93f310cbf1c Pull complete 2.1s
  16. ✔ 86259c71fe78 Pull complete 2.2s
  17. ✔ 3e0cd4124cb6 Pull complete 4.2s
  18. ✔ 4f4fb700ef54 Pull complete 4.3s
  19. ubuntu@apollo:~/projects/docker/n8n-docker-caddy$ docker compose up -d
  20. WARN[0000] The "GENERIC_TIMEZONE" variable is not set. Defaulting to a blank string.
  21. WARN[0000] /home/ubuntu/projects/docker/n8n-docker-caddy/docker-compose.yml: `version` is obsolete
  22. [+] Running 2/2
  23. ✔ Container n8n-docker-caddy-n8n-1 Started 3.3s
  24. ✔ Container n8n-docker-caddy-caddy-1 Started 3.2s
  25. ubuntu@apollo:~/projects/docker/n8n-docker-caddy$ docker compose ps
  26. WARN[0000] The "GENERIC_TIMEZONE" variable is not set. Defaulting to a blank string.
  27. WARN[0000] /home/ubuntu/projects/docker/n8n-docker-caddy/docker-compose.yml: `version` is obsolete
  28. NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
  29. n8n-docker-caddy-caddy-1 caddy:latest "caddy run --config …" caddy 7 seconds ago Up 4 seconds 0.0.0.0:80->80/tcp, :::80->80/tcp, 0.0.0.0:443->443/tcp, :::443->443/tcp, 443/udp, 2019/tcp
  30. n8n-docker-caddy-n8n-1 docker.n8n.io/n8nio/n8n "tini -- /docker-ent…" n8n 3 days ago Up 4 seconds 0.0.0.0:5678->5678/tcp, :::5678->5678/tcp
  31. ubuntu@apollo:~/projects/docker/n8n-docker-caddy$ docker ps
  32. CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
  33. 96c88610b3d4 caddy:latest "caddy run --config …" 10 seconds ago Up 7 seconds 0.0.0.0:80->80/tcp, :::80->80/tcp, 0.0.0.0:443->443/tcp, :::443->443/tcp, 443/udp, 2019/tcp n8n-docker-caddy-caddy-1
  34. e89d296d972c docker.n8n.io/n8nio/n8n "tini -- /docker-ent…" 3 days ago Up 7 seconds 0.0.0.0:5678->5678/tcp, :::5678->5678/tcp n8n-docker-caddy-n8n-1
  35. ubuntu@apollo:~/projects/docker/n8n-docker-caddy$ ll
  36. total 36
  37. drwxrwxr-x 5 ubuntu ubuntu 4096 Jan 5 14:01 ./
  38. drwxrwxr-x 3 ubuntu ubuntu 4096 Mar 30 2024 ../
  39. -rw-rw-r-- 1 ubuntu ubuntu 643 Mar 30 2024 .env
  40. drwxrwxr-x 8 ubuntu ubuntu 4096 Jul 4 2024 .git/
  41. -rw-rw-r-- 1 ubuntu ubuntu 1082 Mar 30 2024 LICENSE
  42. -rw-rw-r-- 1 ubuntu ubuntu 779 Mar 30 2024 README.md
  43. drwxrwxr-x 3 ubuntu ubuntu 4096 May 11 2024 caddy_config/
  44. -rw-rw-r-- 1 ubuntu ubuntu 782 Apr 30 2024 docker-compose.yml
  45. drwxrwxr-x 2 ubuntu ubuntu 4096 Mar 30 2024 local_files/
  46. ubuntu@apollo:~/projects/docker/n8n-docker-caddy$ cat docker-compose.yml
  47. version: "3.7"
  48.  
  49. services:
  50. caddy:
  51. image: caddy:latest
  52. restart: unless-stopped
  53. ports:
  54. - "80:80"
  55. - "443:443"
  56. volumes:
  57. - caddy_data:/data
  58. - ${DATA_FOLDER}/caddy_config:/config
  59. - ${DATA_FOLDER}/caddy_config/Caddyfile:/etc/caddy/Caddyfile
  60.  
  61. n8n:
  62. image: docker.n8n.io/n8nio/n8n
  63. restart: always
  64. ports:
  65. - 5678:5678
  66. environment:
  67. - N8N_HOST=${SUBDOMAIN}.${DOMAIN_NAME}
  68. - N8N_PORT=5678
  69. - N8N_PROTOCOL=https
  70. - NODE_ENV=production
  71. - WEBHOOK_URL=https://${SUBDOMAIN}.${DOMAIN_NAME}/
  72. - GENERIC_TIMEZONE=${GENERIC_TIMEZONE}
  73. volumes:
  74. - n8n_data:/home/node/.n8n
  75. - ${DATA_FOLDER}/local_files:/files
  76.  
  77. volumes:
  78. caddy_data:
  79. external: true
  80. n8n_data:
  81. external: true
  82. ubuntu@apollo:~/projects/docker/n8n-docker-caddy$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement