Skip to content

Docker Compose File

text
version: '3.8'

services:
  tunnel:
    image: cloudflare/cloudflared
    restart: unless-stopped
    command: tunnel --no-autoupdate run
    environment:
      - TZ=${TZ}
      - TUNNEL_TOKEN=${TOKEN}
    networks:
      - cloudflared
  
  gotenberg:
    image: gotenberg/gotenberg:8
    restart: unless-stopped
    networks:
      - cloudflared

  n8n:
    image: n8nio/n8n:next
    restart: unless-stopped
    environment:
      - N8N_SECURE_COOKIE=false
      - NODE_ENV=production
      - N8N_HOST=${N8N_HOST}
      - WEBHOOK_URL=https://${N8N_HOST}
      - GENERIC_TIMEZONE=${TZ}
      - N8N_RUNNERS_ENABLED=true
    volumes:
      - ./n8n:/home/node/.n8n
    networks:
      - cloudflared

  php-fpm:
    image: php:8.2-fpm-alpine
    restart: unless-stopped
    volumes:
      - ./templates:/var/www/html
    networks:
      - cloudflared

  nginx:
    image: nginx:alpine
    restart: unless-stopped
    volumes:
      - ./templates:/var/www/html
      - ./nginx.conf:/etc/nginx/conf.d/default.conf
    depends_on:
      - php-fpm
    networks:
      - cloudflared

networks:
  cloudflared: