Sign inSign up

andelink/docker-tailnet-edge:extends

Manifest digest

sha256:ebc13b0bc5efcc7413a1aab4cd9d613a551759458421164a366fd844f69628fb

Last pushed

3 months by andelink

Type

Compose

Manifest digest

sha256:ebc13b0bc5efcc7413a1aab4cd9d613a551759458421164a366fd844f69628fb

Compose file content

x-vars:
  SPLIT_DNS_DOMAIN: &splitdns ${SPLIT_DNS_DOMAIN:-${LOGNAME}}${TEST:+.test}

services:
  backend:
    image: alpine  # Needed to be a valid compose project, should override when extending
    networks:
      - backend
    environment:
      SPLIT_DNS_DOMAIN: *splitdns
      HOMEPAGE_VAR_SPLIT_DNS_DOMAIN: *splitdns
      HOMEPAGE_FILE_HOSTNAME: /etc/hostname
      HOMEPAGE_VAR_NAME:
    labels:
       traefik.enable: false
       homepage.group: Backend
       homepage.name: "{{HOMEPAGE_VAR_NAME}}"
       homepage.siteMonitor: http://{{HOMEPAGE_FILE_HOSTNAME}}

  frontend:
    extends:
      service: backend
    networks:
      - backend
      - frontend
    labels:
       traefik.enable: true
       homepage.group: Frontend
       homepage.href: http://{{HOMEPAGE_VAR_NAME}}.{{HOMEPAGE_VAR_SPLIT_DNS_DOMAIN}}


# Needed to be a valid compose project, though unused when extending this file
networks:
  backend:
    external: false
  frontend:
    external: true

Docker commands

docker compose -f oci://andelink/docker-tailnet-edge:extends up

Use the above command to pull and run the Compose file. Learn more⁠.

Images used

No images found
No images were found in the Compose file.