migrate to compose-projects folder and init repo

This commit is contained in:
2025-08-13 22:47:11 -03:00
commit a08c8cc7fa
33 changed files with 1873 additions and 0 deletions

15
n8n/.env Normal file
View File

@@ -0,0 +1,15 @@
# The top level domain to serve from
DOMAIN_NAME=ccalifice.com
# The subdomain to serve from
SUBDOMAIN=n8n
# DOMAIN_NAME and SUBDOMAIN combined decide where n8n will be reachable from
# above example would result in: https://n8n.example.com
# Optional timezone to set which gets used by Cron-Node by default
# If not set New York time will be used
GENERIC_TIMEZONE=America/Sao_Paulo
# The email address to use for the SSL certificate creation
SSL_EMAIL=christoph.califice@hotmail.com

54
n8n/docker-compose.yml Normal file
View File

@@ -0,0 +1,54 @@
services:
n8n:
image: n8nio/n8n
container_name: n8n
ports:
- "5678:5678"
environment:
- N8N_SECURE_COOKIE=true
- N8N_BASIC_AUTH_ACTIVE=true
- N8N_BASIC_AUTH_USER=christoph.califice@hotmail.com
- N8N_BASIC_AUTH_PASSWORD=malvado6696
- DB_TYPE=postgresdb
- DB_POSTGRESDB_HOST=db
- DB_POSTGRESDB_PORT=5432
- DB_POSTGRESDB_DATABASE=n8n
- DB_POSTGRESDB_USER=n8n
- DB_POSTGRESDB_PASSWORD=n8n
- NODE_FUNCTION_ALLOW_EXTERNAL=axios,qs
- 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
- ./files:/files
depends_on:
- db
restart: unless-stopped
networks:
- caddy-net
- n8n-net
db:
image: postgres:12
container_name: n8n-db
volumes:
- ./db-data:/var/lib/postgresql/data
environment:
- POSTGRES_USER=n8n
- POSTGRES_PASSWORD=n8n
- POSTGRES_DB=n8n
restart: unless-stopped
networks:
- n8n-net
networks:
caddy-net:
external: true
name: caddy-net
n8n-net:
name: n8n-net
driver: bridge