Coder Social home page Coder Social logo

slashfan / docker-symfony Goto Github PK

View Code? Open in Web Editor NEW
21.0 21.0 4.0 96 KB

Basic Docker configuration for Symfony and other PHP projects development (drupal, wordpress...)

License: MIT License

PHP 0.29% Dockerfile 76.67% Makefile 23.04%
docker symfony

docker-symfony's People

Contributors

ibousfiha avatar slashfan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

docker-symfony's Issues

Container user's permissions issue when the UID of current session is different than 1000

Hello !
It's a pleasure to create the first issue of this repo.
Well, it's the second time that I'm facing the same issue.
The problem is that the created user don't match the current session user, So, don't have permission to create a directory for exemple.
My current session UID is different than 1000 (by default), in my case 1001.
So containers PHP and Node don't have permissions on files.
I edited the creation of users for both.

On PHP I changed docker/php/Dockerfile:131
from: RUN useradd -ms /bin/bash project
to: RUN useradd -m -u 1001 -o -s /bin/bash project

On Node I changed docker/node/Dockerfile:7:
from: RUN groupmod -g 999 node && usermod -u 999 -g 999 node
to: RUN groupmod -g 1001 node && usermod -u 1001 -g 1001 node

The solution might be to get the current user ID on building process or to make it as an argument on docker-compose.override.yml ?

I would like to know about your point of view before making any PR.

Thanks in advance.

varnish

  • add a varnish variant of the base configuration

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.