# Builds the arm64 image from source (Raspberry Pi, Apple silicon, Ampere/Graviton, ...). # # Build and publish it, so docker-compose.arm64.yml can pull it on the arm64 machine: # docker compose -f docker-compose.arm64.build.yml build # docker compose -f docker-compose.arm64.build.yml push # # Or build and run it right here on an arm64 machine: # docker compose -f docker-compose.arm64.build.yml up -d --build # # Building on an x86 machine works too, through QEMU emulation (slower). One-time setup: # docker run --privileged --rm tonistiigi/binfmt --install arm64 # Needs Docker Compose v2 with buildx (bundled with current Docker Desktop and Docker Engine). services: homelab-manager: build: context: . platforms: - linux/arm64 platform: linux/arm64 # Same image name and tag docker-compose.arm64.yml pulls. Override with IMAGE_REPO / ARM64_TAG in .env or the shell. image: ${IMAGE_REPO:-gitea.labsconnect.se/bobban/homelabmanager-homelab-manager}:${ARM64_TAG:-arm64} container_name: homelab-manager restart: unless-stopped ports: - "${HOST_PORT:-3000}:3000" env_file: - .env environment: PORT: 3000 NODE_ENV: production volumes: - ./data:/app/data