Timemachine

Docker image to run Samba or AFP (netatalk) to provide a compatible Time Machine for MacOS.

Directory Structure

    • .env
    • docker-compose.yml

docker-compose.yml

version: "3.7"
services:
  timemachine:
    container_name: timemachine
    image: mbentley/timemachine:smb  
    network_mode: "host"
    environment:
      - TM_USERNAME=timemachine
      - TM_GROUPNAME=timemachine
      - PASSWORD=timemachine
      - TM_UID=1000
      - TM_GID=1000
      - SET_PERMISSIONS=false
      - VOLUME_SIZE_LIMIT=0
    ports:
      - "137:137/udp"
      - "138:138/udp"
      - "139:139"
      - "445:445"
    volumes:
      - /path/to/your/timemachine/volume:/opt/timemachine
    tmpfs:
      - /run/samba
    ulimits:
      nofile:
        soft: 65536
        hard: 65536
    restart: unless-stopped

Resources

GitHub: https://github.com/mbentley/docker-timemachine

Docker Hub: https://hub.docker.com/r/mbentley/timemachine

Configuration: https://github.com/mbentley/docker-timemachine#example-usage-for-smb