Files
dyolink/infrastructure/docker-compose.verdaccio.yml
rameen 957f94cf15 Cache npm and Docker bases on the Windows Gitea host for Iran-only builds.
CI installs via local Verdaccio and prefers Gitea copies of node/postgres/nginx so staging and prod can still ship when Docker Hub and npmjs are unreachable.
2026-09-15 12:04:04 +03:30

28 lines
876 B
YAML

# Local npm warehouse for Windows CI (port 4873).
# Start once (while online), keep running like Gitea.
#
# docker compose -f docker-compose.verdaccio.yml --env-file deploy.registry.env up -d
#
# After seed-gitea-base-images.ps1, set VERDACCIO_IMAGE to the Gitea copy so this
# container can start during an international blackout:
# VERDACCIO_IMAGE=host.docker.internal:3000/<owner>/verdaccio:5
#
# Docker builds use http://host.docker.internal:4873 (see NPM_REGISTRY / Dockerfiles).
name: dyolink-verdaccio
services:
verdaccio:
image: ${VERDACCIO_IMAGE:-verdaccio/verdaccio:5}
container_name: dyolink_verdaccio
ports:
- "4873:4873"
volumes:
- ./verdaccio/config.yaml:/verdaccio/conf/config.yaml:ro
- verdaccio_storage:/verdaccio/storage
restart: unless-stopped
volumes:
verdaccio_storage:
name: dyolink_verdaccio_storage