0060cd11bb
docker-compose.yaml now pulls git.goyban.com/goyban/whattodo so it can be used without the source. publish.sh builds the committed version and pushes it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
21 lines
824 B
YAML
21 lines
824 B
YAML
# Runs the published image; no source code needed. Put this file and a .env (from .env.example) in a folder, then:
|
|
# docker compose up -d
|
|
# Update to the newest published version:
|
|
# docker compose pull && docker compose up -d
|
|
# To build from source instead, use docker-compose.build.yaml.
|
|
services:
|
|
whattodo:
|
|
image: git.goyban.com/goyban/whattodo:${WHATTODO_TAG:-latest}
|
|
restart: unless-stopped
|
|
env_file: .env
|
|
ports:
|
|
# BIND_ADDR=127.0.0.1 -> this computer only; 0.0.0.0 -> also reachable from your phone on the LAN.
|
|
- "${BIND_ADDR:-127.0.0.1}:${PORT:-8080}:8000"
|
|
volumes:
|
|
- ./data:/data
|
|
healthcheck:
|
|
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://127.0.0.1:8000/api/health')"]
|
|
interval: 30s
|
|
timeout: 5s
|
|
retries: 3
|