Skip to content

Admin read only folder on Docker #99

Answered by 9001
DiR3KT asked this question in Q&A
Discussion options

You must be logged in to vote

nice, you almost got it right :-)

I think this should work:

[/]              # create a volume at "/" (the webroot), which will
  /w             # share /w (the docker data volume)
  accs:
    rw: *        # everyone gets read-write access, but
    rwmda: test  # the user "test" gets read-write-move-delete-admin

[/test]      # and then create another volume, accessible at the URL "/test",
  /w/test    # ...and hook it up to this folder on your server's filesystem
  accs:
    rwmda: test

and, just to explain why it works like this -- it's because sometimes you want to do more crazy stuff... like this for example:

[/]
  /w/public
  accs:
    r: *

[/admin]
  /w/admin
  accs:
    rwmda: test

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@DiR3KT
Comment options

Answer selected by DiR3KT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants