kwk / docker-registry-frontend

Browse and modify your Docker registry in a browser.
https://registry.hub.docker.com/u/konradkleine/docker-registry-frontend/
MIT License
1.68k stars 616 forks source link

500 Proxy Error #208

Open ctrlxx opened 5 years ago

ctrlxx commented 5 years ago

500 Proxy Error by the sample docker-compose.yml deployment

# Setup front-end
registry-frontend:
  image: konradkleine/docker-registry-frontend:v2
  #build: ../
  links:
    - registry:registry
  ports:
    # Publish the frontend's port 443 on the IP 0.0.0.0 on port 8443
    - "0.0.0.0:8443:443"
  volumes:
    - ./frontend/certs/frontend.crt:/etc/apache2/server.crt:ro
    - ./frontend/certs/frontend.key:/etc/apache2/server.key:ro
  environment:
    # The front-end is SSL protected
    - ENV_USE_SSL=yes
    - ENV_DOCKER_REGISTRY_HOST=registry
    - ENV_DOCKER_REGISTRY_PORT=5000
    # The registry is SSL protected as well
    - ENV_DOCKER_REGISTRY_USE_SSL=1

# Setup registry
registry:
  image: registry:2.2.0
  volumes:
    # Mount the config directory
    - ./registry/config:/etc/docker/registry:ro
    # Make the registry storage persistent (see ./config/config.yml for the path)
    - ./registry/storage:/var/lib/registry:rw
    # Mount our own certificate and key
    - ./registry/certs:/certs:ro
  ports:
    # Publish registry's port 5000 on the IP 0.0.0.0 on port 5000
    - "0.0.0.0:5000:5000"

image

ctrlxx commented 5 years ago

it found the registry port 8443 but my port is 5000

MichaelMichaelMichaelMichaelMichael commented 2 years ago

I also have the same error, the ENV_DOCKER_REGISTRY_PORT variable is not properly being applied