Files
2026-10-18 09:56:14 -04:00

29 lines
1.1 KiB
YAML

# Local preview of the theme: a throwaway Gitea with this repository mounted as its
# custom folder, read-only, the same way the server mounts it.
#
# Start: docker compose -f preview/compose.yml up -d then open http://localhost:3000
# Stop: docker compose -f preview/compose.yml down add -v to delete the preview's data
#
# See "Preview changes locally" in README.md.
services:
gitea:
# Match the image line in /opt/gitea/docker-compose.yml so the preview runs the server's version.
image: docker.gitea.com/gitea:latest-rootless
container_name: gitea-preview
ports:
- "3000:3000"
environment:
- GITEA__database__DB_TYPE=sqlite3
- GITEA__server__ROOT_URL=http://localhost:3000/
- GITEA__ui__DEFAULT_THEME=scienting-auto
# Pushing to a repository that doesn't exist yet creates it, so any local clone can become test content.
- GITEA__repository__ENABLE_PUSH_CREATE_USER=true
volumes:
- preview-data:/var/lib/gitea
- preview-config:/etc/gitea
- ..:/var/lib/gitea/custom:ro
volumes:
preview-data:
preview-config: