Skip to content

Commit

Permalink
Add more info about permissions
Browse files Browse the repository at this point in the history
If you still don't understand it, you should not run docker.
  • Loading branch information
splitbrain authored Oct 30, 2024
1 parent bc02934 commit b6e07d2
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,17 @@ The container runs the standard production php.ini. Some options can be set via

Custom PHP configuration values can be set in a `php.ini` file in the storage volume.

## Permissions

When the container is started without setting an explicit user id (as the compose file suggests), the image will start as
`root` (uid:`0` gid:`0`) and Apache will drop privileges to `www-data` (uid: `33` gid:`33`). Before this happens, the
entrypoint script will use the `root` privileges to recursively chown everything in `/storage` to `33:33`.

When started with any other user id, the whole container will run under that id. You have to ensure that anything mounted
to `/storage` is writable by that uid.

The entry script will print some info about it's effective uid and gid during container start.

## Farming

This image supports farming via the [farmer plugin](https://www.dokuwiki.org/plugin:farmer). To use it, install the
Expand Down

0 comments on commit b6e07d2

Please sign in to comment.