Files
songtrace/docker-compose.yml
T
branderson 4a4da08fa0
tests / test (pull_request_target) Successful in 6m38s
Mirror main to GitHub and publish the image to GHCR
mirror/github-mirror.sh publishes main and the tags on it to a read-only
GitHub mirror, as one extra commit that adds a notice under the README
title, so every forge commit is unchanged there and each sync is a
fast-forward. A systemd user service and hourly timer run it from a host
that can push to GitHub; --settings turns off issues, pull requests and
the rest there.

A GitHub Actions workflow builds the image on the mirror and pushes it to
ghcr.io, freeing runner disk first since the CUDA build of torch is
several GB. docker-compose.yml names the image after IMAGE_PREFIX and
IMAGE_TAG, so setting them pulls the published image instead of
building, and the README says how.
2026-10-15 17:55:25 -07:00

19 lines
493 B
YAML

services:
songtrace:
# built here by default; set IMAGE_PREFIX (and IMAGE_TAG) to pull a
# published image instead, see the README's quick start
build: .
image: ${IMAGE_PREFIX:-}songtrace:${IMAGE_TAG:-latest}
ports:
- "8000:8000"
volumes:
- ./config.toml:/config/config.toml:ro
- ./data:/data
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]