Skip to content

How to set CONTAINER_PRESERVE_OWNER for multiple directories. #168

Answered by felddy
hugoprudente asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Hugo,

Since the CONTAINER_PRESERVE_OWNER variable accepts a regular expression you can just add an "or" and an additional term.

For example if you had two asset directories you want to preserve ownership on:

  • /data/Data/assets
  • /data/Data/more-assets

Setting CONTAINER_PRESERVE_OWNER to /data/Data/assets\|/data/Data/more-assets will cause both paths to be pruned and not passed to chown.

I tested this with docker-compose and it acted as expected:

---
version: "3.8"

secrets:
  credentials:
    file: credentials-mine.json

services:
  foundry:
    image: felddy/foundryvtt:release
    hostname: felddy_foundryvtt
    init: true
    restart: "no"
    volumes:
      - type: bind
        source: 

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@hugoprudente
Comment options

@felddy
Comment options

@hugoprudente
Comment options

@hugoprudente
Comment options

Answer selected by felddy
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