Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ubuntu@apollo:~$ cd projects/docker/n8n-docker-caddy/
- ubuntu@apollo:~/projects/docker/n8n-docker-caddy$ docker compose stop
- WARN[0000] The "GENERIC_TIMEZONE" variable is not set. Defaulting to a blank string.
- WARN[0000] /home/ubuntu/projects/docker/n8n-docker-caddy/docker-compose.yml: `version` is obsolete
- [+] Stopping 2/2
- ✔ Container n8n-docker-caddy-caddy-1 Stopped 1.3s
- ✔ Container n8n-docker-caddy-n8n-1 Stopped 1.4s
- ubuntu@apollo:~/projects/docker/n8n-docker-caddy$ docker compose pull
- WARN[0000] The "GENERIC_TIMEZONE" variable is not set. Defaulting to a blank string.
- WARN[0000] /home/ubuntu/projects/docker/n8n-docker-caddy/docker-compose.yml: `version` is obsolete
- [+] Pulling 7/7
- ✔ n8n Pulled 1.1s
- ✔ caddy Pulled 5.0s
- ✔ 66a3d608f3fa Pull complete 1.5s
- ✔ a93f310cbf1c Pull complete 2.1s
- ✔ 86259c71fe78 Pull complete 2.2s
- ✔ 3e0cd4124cb6 Pull complete 4.2s
- ✔ 4f4fb700ef54 Pull complete 4.3s
- ubuntu@apollo:~/projects/docker/n8n-docker-caddy$ docker compose up -d
- WARN[0000] The "GENERIC_TIMEZONE" variable is not set. Defaulting to a blank string.
- WARN[0000] /home/ubuntu/projects/docker/n8n-docker-caddy/docker-compose.yml: `version` is obsolete
- [+] Running 2/2
- ✔ Container n8n-docker-caddy-n8n-1 Started 3.3s
- ✔ Container n8n-docker-caddy-caddy-1 Started 3.2s
- ubuntu@apollo:~/projects/docker/n8n-docker-caddy$ docker compose ps
- WARN[0000] The "GENERIC_TIMEZONE" variable is not set. Defaulting to a blank string.
- WARN[0000] /home/ubuntu/projects/docker/n8n-docker-caddy/docker-compose.yml: `version` is obsolete
- NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
- 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
- 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
- ubuntu@apollo:~/projects/docker/n8n-docker-caddy$ docker ps
- CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
- 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
- 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
- ubuntu@apollo:~/projects/docker/n8n-docker-caddy$ ll
- total 36
- drwxrwxr-x 5 ubuntu ubuntu 4096 Jan 5 14:01 ./
- drwxrwxr-x 3 ubuntu ubuntu 4096 Mar 30 2024 ../
- -rw-rw-r-- 1 ubuntu ubuntu 643 Mar 30 2024 .env
- drwxrwxr-x 8 ubuntu ubuntu 4096 Jul 4 2024 .git/
- -rw-rw-r-- 1 ubuntu ubuntu 1082 Mar 30 2024 LICENSE
- -rw-rw-r-- 1 ubuntu ubuntu 779 Mar 30 2024 README.md
- drwxrwxr-x 3 ubuntu ubuntu 4096 May 11 2024 caddy_config/
- -rw-rw-r-- 1 ubuntu ubuntu 782 Apr 30 2024 docker-compose.yml
- drwxrwxr-x 2 ubuntu ubuntu 4096 Mar 30 2024 local_files/
- ubuntu@apollo:~/projects/docker/n8n-docker-caddy$ cat docker-compose.yml
- version: "3.7"
- services:
- caddy:
- image: caddy:latest
- restart: unless-stopped
- ports:
- - "80:80"
- - "443:443"
- volumes:
- - caddy_data:/data
- - ${DATA_FOLDER}/caddy_config:/config
- - ${DATA_FOLDER}/caddy_config/Caddyfile:/etc/caddy/Caddyfile
- n8n:
- image: docker.n8n.io/n8nio/n8n
- restart: always
- ports:
- - 5678:5678
- environment:
- - N8N_HOST=${SUBDOMAIN}.${DOMAIN_NAME}
- - N8N_PORT=5678
- - N8N_PROTOCOL=https
- - NODE_ENV=production
- - WEBHOOK_URL=https://${SUBDOMAIN}.${DOMAIN_NAME}/
- - GENERIC_TIMEZONE=${GENERIC_TIMEZONE}
- volumes:
- - n8n_data:/home/node/.n8n
- - ${DATA_FOLDER}/local_files:/files
- volumes:
- caddy_data:
- external: true
- n8n_data:
- external: true
- ubuntu@apollo:~/projects/docker/n8n-docker-caddy$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement