flnxi-Wu/deploy/registry-proxy/docker-compose.existing-registry.yml
2026-06-02 19:25:48 +08:00

25 lines
953 B
YAML

services:
module-registry-proxy:
image: ${REGISTRY_PROXY_NGINX_IMAGE:-nginx:1.27-alpine}
container_name: ${REGISTRY_PROXY_CONTAINER_NAME:-flnxi-module-registry-proxy}
restart: unless-stopped
ports:
- "${REGISTRY_PROXY_BIND_HOST:-0.0.0.0}:${REGISTRY_PROXY_PORT:-5002}:5000"
environment:
REGISTRY_BACKEND: ${REGISTRY_BACKEND:-http://flnxi-registry:5000}
REGISTRY_BACKEND_AUTH: ${REGISTRY_BACKEND_AUTH:-}
LICENSE_SERVER_AUTH_URL: ${LICENSE_SERVER_AUTH_URL:?LICENSE_SERVER_AUTH_URL is required, for example http://license-server:3000/api/registry/auth}
volumes:
- ./nginx.module-auth.conf.template:/etc/nginx/templates/default.conf.template:ro
networks:
- registry-network
- license-network
networks:
registry-network:
name: ${REGISTRY_NETWORK_NAME:-flnxi-registry-net}
external: true
license-network:
name: ${LICENSE_NETWORK_NAME:-license-network}
external: true