Adds image: alongside build: so `docker compose build && push` works locally, while the server can just `docker compose pull && up -d` without needing the Dockerfile/build context. .env.example now documents each variable and adds HOST_PORT. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
19 lines
694 B
YAML
19 lines
694 B
YAML
services:
|
|
honey-links:
|
|
# image: used when pulling on the server (docker compose pull && up -d).
|
|
# build: lets `docker compose build` / `docker compose push` create and
|
|
# publish that same image locally, instead of manual docker
|
|
# build/tag/push commands.
|
|
image: gitea.honeyy.duckdns.org/website/honey-links:latest
|
|
build: .
|
|
ports:
|
|
- "${HOST_PORT:-8080}:80"
|
|
environment:
|
|
- ADMIN_PASSWORD=${ADMIN_PASSWORD}
|
|
- SECRET_KEY=${SECRET_KEY}
|
|
# Set to "false" only for local http-only testing without a TLS proxy in front.
|
|
- COOKIE_SECURE=${COOKIE_SECURE:-true}
|
|
volumes:
|
|
- ./data:/app/data
|
|
restart: unless-stopped
|