Container/image/service name, Go module path, CLI binary name, and DOCKER_MIGRATE_* env vars still used the old working name; the project is branded DockMV everywhere else (README, logo, Gitea repo). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
38 lines
1.1 KiB
YAML
38 lines
1.1 KiB
YAML
# dockmv, running on the SOURCE host.
|
|
#
|
|
# docker compose up -d
|
|
# docker compose logs dockmv # the URL and access token are printed here
|
|
#
|
|
# The container needs the Docker socket to read containers and stream their
|
|
# data. That is equivalent to root on this host, so the UI is protected by a
|
|
# generated token and should not be published to an untrusted network.
|
|
|
|
services:
|
|
dockmv:
|
|
build:
|
|
context: .
|
|
args:
|
|
VERSION: ${VERSION:-dev}
|
|
image: dockmv:latest
|
|
container_name: dockmv
|
|
restart: unless-stopped
|
|
ports:
|
|
# Bind to loopback only. Use an SSH tunnel to reach it from elsewhere:
|
|
# ssh -L 8080:127.0.0.1:8080 you@this-host
|
|
- "127.0.0.1:8080:8080"
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
# Connections, trusted SSH host keys and built packages.
|
|
- migrate-data:/data
|
|
environment:
|
|
# Set a fixed token to keep the same URL across restarts.
|
|
# DOCKMV_TOKEN: change-me
|
|
TZ: ${TZ:-UTC}
|
|
command:
|
|
- serve
|
|
- --addr=0.0.0.0:8080
|
|
- --token=auto
|
|
|
|
volumes:
|
|
migrate-data:
|