Comments (7)
I'm using Arch Linux and I don't even have "www-data" user. Arch Linux have an "http" user with id 33 (and I'm running webserver as my own user to avoid permissions problems regardless). That's why I was looking for a more flexible solution.
from nginx.
There's no way to customize it via environment variable because it's set in Dockerfile. To fix permissions problem follow these instructions
from nginx.
Wouldn't this work? http://stackoverflow.com/questions/34322631/how-to-pass-arguments-within-docker-compose, it seems to be already possible to pass variables to docker-compose.yml .
Added: docker/compose#2163 more "official" source :) .
from nginx.
Why not just create a group on your host machine with ID 82 as described here?
from nginx.
It works and I'm using it right now, but it doesn't feel "right". Maybe we could achieve the same without mixed owners - that's what I'm suggesting, but I'm not sure if it's a good solution, just a suggestion.
from nginx.
The ID 82 is a standard gid/uid for www-data in alpine linux and since you're using nginx with php, the user should be the same in both containers, see Dockerfile of the official php-fpm image that we use for drupal-php (82 uid/gid is used).
from nginx.
@lukasz-zaroda you can add alpine-www-data
or alpine-http
group. Or you can override d4d containers via docker-compose build. An issue-related comment in other thread.
from nginx.
Related Issues (20)
- Custom presets HOT 1
- Are AdvAgg rules working? HOT 3
- Using container standalone isseu HOT 1
- Custom preset upstream.conf not correctly checked HOT 1
- Ability to use WebSockets HOT 1
- Help me understand how the nginx environment works HOT 1
- Custom Preset naming / error HOT 2
- Add webP as assets extension in nginx conf HOT 1
- Fails when the volume is mounted readonly HOT 2
- Allow .yml in files directory (just like .txt) HOT 2
- Drupal Backup and Migrate restore path generates 404 in nginx
- 502 Bad Gateway
- Block all user/content edition path
- Memory leak HOT 1
- NGINX hotlinc protection configuring
- Change Advagg paths
- Drupal 10.1.0 CSS Aggregation updates. HOT 1
- X-Forwarded-Proto is returning `http,https` instead of `https` since nginx version >= `1.23` HOT 1
- ancestor violates the following Content Security Policy directive: "frame-ancestors" Drupal 10 HOT 4
- Rewrite rules changed for Wordpress Google XML Sitemap plugin HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nginx.