Git Product home page Git Product logo

Comments (7)

lukasz-zaroda avatar lukasz-zaroda commented on September 27, 2024 1

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.

csandanov avatar csandanov commented on September 27, 2024

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.

lukasz-zaroda avatar lukasz-zaroda commented on September 27, 2024

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.

csandanov avatar csandanov commented on September 27, 2024

Why not just create a group on your host machine with ID 82 as described here?

from nginx.

lukasz-zaroda avatar lukasz-zaroda commented on September 27, 2024

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.

csandanov avatar csandanov commented on September 27, 2024

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.

pprishchepa avatar pprishchepa commented on September 27, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.