Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

452
Views
Error de permiso de composición de Docker, chown no funciona

Intentando configurar un proyecto laravel con redis, mysql y mongodb. Uso de docker-compose para configurar contenedores docker, pero 127.0.0.1 arroja The stream or file "/var/www/html/storage/logs/laravel.log" could not be opened: failed to open stream: Permission denied . El directorio Chown'ing pero el propietario de /var/www/html dentro del contenedor 'app' es raíz, no www-data. ¿Cómo puedo arreglarlo?

Dockerfile

 ARG PHP_VERSION FROM php:7-fpm-alpine ARG APP_ENV ARG REMOTE_WORKING_DIR RUN apk update && apk add --no-cache $PHPIZE_DEPS \ build-base shadow nano curl gcc git bash \ php7 \ ...installing dependencies... ...redis & mongodb... ...php settings... ...installing composer... RUN rm -rf /var/cache/apk/* RUN apk add shadow && usermod -u 1000 www-data && groupmod -g 1000 www-data COPY . $REMOTE_WORKING_DIR RUN sudo chown -R www-data:www-data $REMOTE_WORKING_DIR USER www-data EXPOSE 9000 CMD ["php-fpm"]

docker-compose.yml

 version: "3" services: app: build: context: ./docker/php args: APP_ENV: ${APP_ENV} PHP_VERSION: ${PHP_VERSION} REMOTE_WORKING_DIR: ${REMOTE_WORKING_DIR} container_name: app restart: always env_file: .env ports: ... links: - redis networks: ... volumes: - ${LOCAL_WORKING_DIR}:${REMOTE_WORKING_DIR} - ./docker/php/config/xdebug.ini:/usr/local/etc/php/conf.d/xdebug.ini nginx: ... volumes: - ${LOCAL_WORKING_DIR}:${REMOTE_WORKING_DIR} - ./docker/nginx/nginx.conf:/etc/nginx/nginx.conf - ./docker/nginx/conf.d/:/etc/nginx/conf.d/ - ./docker/nginx/ssl/:/etc/nginx/ssl/ ports: ... depends_on: - app networks: ... redis: ... networks: ...
over 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!