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

Running in Swarm mode: Cannot use secrets #185

Open riker09 opened 6 years ago

riker09 commented 6 years ago

Expected behavior

So instead of this:

  frontend:
    image: konradkleine/docker-registry-frontend:v2
    volumes:
      - ./certs/frontend.crt:/etc/apache2/server.crt:ro
      - ./certs/frontend.key:/etc/apache2/server.key:ro

I want to do this:

  frontend:
    image: konradkleine/docker-registry-frontend:v2
    secrets:
      - source: frontend.crt
        target: /etc/apache2/server.crt
        mode: 0440
      - source: frontend.key
        target: /etc/apache2/server.key
        mode: 0440

secrets:
  frontend.crt:
    file: ./certs/frontend.crt
  frontend.key:
    file: ./certs/frontend.key

(I have left out the configs for ports, environment, etc. for brevity)

Actual behavior

Steps to reproduce the problem

Specifications