Docker Compose

NOTE: The TUNNEL UUID is put into this file AFTER you followed the steps to set up the tunnel and it's files etc.

It also assumes you are using a custom docker network named 'proxy'. Otherwise, update it to reflect your Docker network or remove it entirely if you don't wish to use it.

version: "3.8"
services:
  cloudflared:
    image: cloudflare/cloudflared:latest #update the verion where necessary
    container_name: cloudflared
    restart: unless-stopped
    networks:
      - proxy
    command: tunnel --config /home/nonroot/.cloudflared/config.yml run UUID #Replace UUID with your actual UUID
    volumes:
      - /opt/appdata/cloudflared/data:/home/nonroot/.cloudflared/
networks:
  proxy:
    driver: bridge
    external: true

Last updated