Skip to content

Commit

Permalink
Merge pull request #111 from wunderio/doc/filestore-user
Browse files Browse the repository at this point in the history
user directive for php dockerfile when filestore is used
  • Loading branch information
Rade333 authored Mar 26, 2024
2 parents 1abe61d + c31ff95 commit 79cf615
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/vendor-gcs.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,18 @@ mounts:
storageClassName: nfs-shared
```

Add `USER` directive to `silta/php.Dockerfile` right after the COPY line so files are created with correct permissions and can be modified via shell (i.e. `drush cr`).
```yaml
USER www-data
```

Dockerfile example of a project
```yaml
FROM wunderio/silta-php-fpm:8.2-fpm-v1
COPY --chown=www-data:www-data . /app
USER www-data
```

Full example on using the provisioned storageclass in **new and existing** projects [here](gcp_filestore_migration.md)

### ingress-nginx load balancer on GKE private cluster
Expand Down

0 comments on commit 79cf615

Please sign in to comment.